Skip to content
Closed
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: 10 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,20 @@ name: 馃殌 Release

on:
workflow_dispatch:
inputs:
dry-run:
description: 'Dry run (verify auth and build, do not publish)'
type: boolean
default: false

jobs:
release:
runs-on: ubuntu-latest

permissions:
contents: write
packages: write
contents: write # push the changelog commit and tag
issues: write # @semantic-release/github opens a failure issue
id-token: write # OIDC trusted publishing and npm provenance

steps:
- name: 馃洅 Checkout code
Expand All @@ -21,7 +27,7 @@ jobs:
- name: 馃敡 Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
node-version: '24' # ships npm >= 11.6, required for OIDC trusted publishing
cache: 'yarn'

- name: 馃摝 Install dependencies
Expand All @@ -30,8 +36,7 @@ jobs:

- name: 馃帀 Release
working-directory: packages/react-native-sortables
run: yarn semantic-release
run: yarn semantic-release ${{ inputs.dry-run && '--dry-run' || '' }}
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
YARN_NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
HUSKY: 0
2 changes: 1 addition & 1 deletion packages/react-native-sortables/.releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@
"changelogFile": "CHANGELOG.md"
}
],
"semantic-release-yarn",
"@semantic-release/npm",
[
"@semantic-release/git",
{
Expand Down
4 changes: 2 additions & 2 deletions packages/react-native-sortables/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"@semantic-release/commit-analyzer": "^13.0.0",
"@semantic-release/git": "^10.0.1",
"@semantic-release/github": "^10.0.7",
"@semantic-release/npm": "^13.1.5",
"@semantic-release/release-notes-generator": "^14.0.1",
"@testing-library/react-hooks": "^8.0.1",
"@testing-library/react-native": "^12.5.1",
Expand All @@ -28,8 +29,7 @@
"react-native-gesture-handler": "3.0.2",
"react-native-reanimated": "4.5.1",
"react-native-worklets": "0.10.1",
"semantic-release": "^24.0.0",
"semantic-release-yarn": "^3.0.2",
"semantic-release": "^25.0.5",
"syncpack": "^12.3.3",
"typescript": "^5.8.3"
},
Expand Down
Loading
Loading