Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 7 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,16 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch all history for semantic-release
persist-credentials: false
# Persist credentials for commits during release
# persist-credentials: false
ssh-key: ${{ secrets.RELEASE_SSH_KEY }}

- name: 🟢 Setup Node
uses: actions/setup-node@v4
with:
node-version: '20' # LTS
cache: 'npm'
registry-url: 'https://registry.npmjs.org'
node-version: "20" # LTS
cache: "npm"
registry-url: "https://registry.npmjs.org"

- name: 📦 Install dependencies
run: npm ci
Expand All @@ -52,10 +54,7 @@ jobs:
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"

# Configure git to use GITHUB_TOKEN for pushing
git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/${{ github.repository }}.git

# Run semantic-release
# Run semantic-release (using SSH deploy key from checkout)
npx semantic-release

- name: 📊 Release Summary
Expand Down
38 changes: 0 additions & 38 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,7 @@
/**
* Commitlint configuration for enforcing conventional commits
* Aligned with platform-sdk-swift configuration
* @see https://commitlint.js.org/
* @see https://www.conventionalcommits.org/
*/
module.exports = {
extends: ["@commitlint/config-conventional"],

rules: {
// Increased body line length to match Swift SDK (300 chars)
"body-max-line-length": [2, "always", 300],

// Type enum - allowed commit types
"type-enum": [
2,
"always",
Expand All @@ -29,33 +19,5 @@ module.exports = {
"revert", // Revert previous commit - no version increment
],
],

// Type must be lowercase
"type-case": [2, "always", "lower-case"],

// Type is required
"type-empty": [2, "never"],

// Subject must not be empty
"subject-empty": [2, "never"],

// Subject must not end with a period
"subject-full-stop": [2, "never", "."],

// Subject case - sentence case, start case, pascal case, or upper case
"subject-case": [
2,
"never",
["sentence-case", "start-case", "pascal-case", "upper-case"],
],

// Header (first line) max length
"header-max-length": [2, "always", 100],

// Body should have a blank line before it
"body-leading-blank": [1, "always"],

// Footer should have a blank line before it
"footer-leading-blank": [1, "always"],
},
};
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@
"Bible",
"YouVersion"
],
"repository": "https://github.com/youversion/platform-sdk-reactnative",
"repository": "git@github.com:youversion/platform-sdk-reactnative.git",
"bugs": {
"url": "https://github.com/youversion/platform-sdk-reactnative/issues"
},
"author": "YouVersion (https://github.com/youversion/yvp-react-native-sdk)",
"author": "YouVersion (https://github.com/youversion/platform-sdk-reactnative)",
"license": "Apache-2.0",
"homepage": "https://github.com/youversion/yvp-react-native-sdk#readme",
"homepage": "https://github.com/youversion/platform-sdk-reactnative#readme",
"jest": {
"preset": "expo-module-scripts"
},
Expand Down