Skip to content

Commit 5c4cd6d

Browse files
danbot315Daniel Clayton
andauthored
fix: enforce tokenless npm trusted publishing in release workflow (#20)
Co-authored-by: Daniel Clayton <dan@Daniels-Mac-mini.local>
1 parent 14831bf commit 5c4cd6d

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ jobs:
3030
uses: actions/setup-node@v4
3131
with:
3232
node-version: '20'
33-
registry-url: 'https://registry.npmjs.org'
3433

3534
- name: Install dependencies
3635
run: bun install --frozen-lockfile
@@ -58,7 +57,10 @@ jobs:
5857
env:
5958
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6059
NPM_CONFIG_PROVENANCE: true
61-
run: bun run changeset:publish
60+
NODE_AUTH_TOKEN: ''
61+
run: |
62+
rm -f ~/.npmrc
63+
bun run changeset:publish
6264
6365
- name: Commit version updates to main
6466
if: steps.changesets.outputs.count != '0'

0 commit comments

Comments
 (0)