Skip to content

Commit e3ca175

Browse files
authored
chore: adjust token and commitlint # (#12)
chore: adjust token and commitlint fix: close token-related deployment issue #9
1 parent 1aba29b commit e3ca175

3 files changed

Lines changed: 10 additions & 49 deletions

File tree

.github/workflows/release.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,16 @@ jobs:
2222
uses: actions/checkout@v4
2323
with:
2424
fetch-depth: 0 # Fetch all history for semantic-release
25-
persist-credentials: false
25+
# Persist credentials for commits during release
26+
# persist-credentials: false
27+
ssh-key: ${{ secrets.RELEASE_SSH_KEY }}
2628

2729
- name: 🟢 Setup Node
2830
uses: actions/setup-node@v4
2931
with:
30-
node-version: '20' # LTS
31-
cache: 'npm'
32-
registry-url: 'https://registry.npmjs.org'
32+
node-version: "20" # LTS
33+
cache: "npm"
34+
registry-url: "https://registry.npmjs.org"
3335

3436
- name: 📦 Install dependencies
3537
run: npm ci
@@ -52,10 +54,7 @@ jobs:
5254
git config user.name "github-actions[bot]"
5355
git config user.email "github-actions[bot]@users.noreply.github.com"
5456
55-
# Configure git to use GITHUB_TOKEN for pushing
56-
git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/${{ github.repository }}.git
57-
58-
# Run semantic-release
57+
# Run semantic-release (using SSH deploy key from checkout)
5958
npx semantic-release
6059
6160
- name: 📊 Release Summary

commitlint.config.js

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,7 @@
1-
/**
2-
* Commitlint configuration for enforcing conventional commits
3-
* Aligned with platform-sdk-swift configuration
4-
* @see https://commitlint.js.org/
5-
* @see https://www.conventionalcommits.org/
6-
*/
71
module.exports = {
82
extends: ["@commitlint/config-conventional"],
9-
103
rules: {
11-
// Increased body line length to match Swift SDK (300 chars)
124
"body-max-line-length": [2, "always", 300],
13-
14-
// Type enum - allowed commit types
155
"type-enum": [
166
2,
177
"always",
@@ -29,33 +19,5 @@ module.exports = {
2919
"revert", // Revert previous commit - no version increment
3020
],
3121
],
32-
33-
// Type must be lowercase
34-
"type-case": [2, "always", "lower-case"],
35-
36-
// Type is required
37-
"type-empty": [2, "never"],
38-
39-
// Subject must not be empty
40-
"subject-empty": [2, "never"],
41-
42-
// Subject must not end with a period
43-
"subject-full-stop": [2, "never", "."],
44-
45-
// Subject case - sentence case, start case, pascal case, or upper case
46-
"subject-case": [
47-
2,
48-
"never",
49-
["sentence-case", "start-case", "pascal-case", "upper-case"],
50-
],
51-
52-
// Header (first line) max length
53-
"header-max-length": [2, "always", 100],
54-
55-
// Body should have a blank line before it
56-
"body-leading-blank": [1, "always"],
57-
58-
// Footer should have a blank line before it
59-
"footer-leading-blank": [1, "always"],
6022
},
6123
};

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@
2525
"Bible",
2626
"YouVersion"
2727
],
28-
"repository": "https://github.com/youversion/platform-sdk-reactnative",
28+
"repository": "git@github.com:youversion/platform-sdk-reactnative.git",
2929
"bugs": {
3030
"url": "https://github.com/youversion/platform-sdk-reactnative/issues"
3131
},
32-
"author": "YouVersion (https://github.com/youversion/yvp-react-native-sdk)",
32+
"author": "YouVersion (https://github.com/youversion/platform-sdk-reactnative)",
3333
"license": "Apache-2.0",
34-
"homepage": "https://github.com/youversion/yvp-react-native-sdk#readme",
34+
"homepage": "https://github.com/youversion/platform-sdk-reactnative#readme",
3535
"jest": {
3636
"preset": "expo-module-scripts"
3737
},

0 commit comments

Comments
 (0)