Skip to content

Commit e8409dd

Browse files
ci: revert to NPM_TOKEN auth for publishing
1 parent 325e640 commit e8409dd

File tree

1 file changed

+3
-14
lines changed

1 file changed

+3
-14
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ concurrency: ${{ github.workflow }}-${{ github.ref }}
1010
permissions:
1111
contents: write
1212
pull-requests: write
13-
id-token: write
1413
issues: write
1514

1615
jobs:
@@ -30,6 +29,7 @@ jobs:
3029
uses: actions/setup-node@v4
3130
with:
3231
node-version: 20
32+
registry-url: 'https://registry.npmjs.org'
3333

3434
- name: Install Dependencies
3535
run: bun install
@@ -41,21 +41,10 @@ jobs:
4141
id: changesets
4242
uses: changesets/action@v1
4343
with:
44+
publish: bun run release
4445
version: bun run version
4546
commit: 'chore: version packages'
4647
title: 'chore: version packages'
4748
env:
4849
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
49-
50-
- name: Publish to npm with provenance
51-
if: steps.changesets.outputs.hasChangesets == 'false'
52-
working-directory: packages/streamdown-rn
53-
run: |
54-
# Clear any existing npmrc that might interfere
55-
rm -f ~/.npmrc
56-
# Configure npm registry
57-
npm config set registry https://registry.npmjs.org/
58-
# Check npm version (need 9.5.0+ for OIDC)
59-
npm --version
60-
# Publish with provenance (triggers OIDC auth)
61-
npm publish --provenance --access public
50+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)