2424 default : false
2525 type : boolean
2626
27+ permissions :
28+ actions : write
29+ contents : write
30+ id-token : write
31+
2732concurrency :
2833 group : ${{ github.workflow }}-${{ github.ref }}
2934 cancel-in-progress : false
3843 token : ${{ secrets.GITHUB_TOKEN }}
3944 fetch-depth : 0
4045
46+ - uses : actions/setup-node@v4
47+ with :
48+ node-version : 24
49+ registry-url : https://registry.npmjs.org
50+
4151 - uses : oven-sh/setup-bun@v1
4252 with :
4353 bun-version : latest
@@ -111,12 +121,6 @@ jobs:
111121 echo "use_prerelease=false" >> $GITHUB_OUTPUT
112122 fi
113123
114- - name : " Setup npm authentication"
115- run : |
116- npm config set registry https://registry.npmjs.org/
117- npm config set //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}
118- echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
119-
120124 - name : Install dependencies
121125 run : bun install
122126
@@ -176,8 +180,7 @@ jobs:
176180 # Changesets will only publish packages that are not ignored in config
177181 bun run release
178182 env :
179- NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
180- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
183+ NPM_CONFIG_PROVENANCE : " true"
181184
182185 - name : Commit changes
183186 if : ${{ github.event.inputs.dry_run != 'true' && steps.check-changesets.outputs.has_changesets == 'true' }}
@@ -196,10 +199,6 @@ jobs:
196199 echo "DRY RUN: Would publish the following packages to npm:"
197200 # Show what changesets would publish
198201 bun changeset publish --dry-run
199- env :
200- NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
201- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
202-
203202 - name : Create and push tags
204203 if : ${{ github.event.inputs.dry_run != 'true' && steps.check-changesets.outputs.has_changesets == 'true' }}
205204 run : |
0 commit comments