Skip to content

Commit ed71f41

Browse files
committed
feat: use npm trusted publish
1 parent 571364a commit ed71f41

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

.github/workflows/release-npm.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -131,21 +131,17 @@ jobs:
131131
echo "token=${token}" >> $GITHUB_OUTPUT
132132
shell: bash
133133

134+
- name: Update npm
135+
run: npm install -g npm@latest
136+
134137
- name: Release Full
135138
run: |
136139
git status
137140
cp napi/{index,browser}.js npm
138141
cp napi/index.d.ts npm
139142
pnpm node scripts/x.mjs prepublish
140-
pnpm node scripts/x.mjs publish --otp --tag ${{inputs.tag}} ${{inputs.dry_run && '--dry-run' || '--no-dry-run'}} ${{inputs.push_tags && '--push-tags' || '--no-push-tags'}}
143+
pnpm node scripts/x.mjs publish --tag ${{inputs.tag}} ${{inputs.dry_run && '--dry-run' || '--no-dry-run'}} ${{inputs.push_tags && '--push-tags' || '--no-push-tags'}}
141144
env:
142-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
143145
REPOSITORY: ${{ github.repository }}
144146
REF: ${{ github.ref }}
145-
ONLY_RELEASE_TAG: true
146-
# CFA required environment variables
147-
CFA_HOST: https://cfa.rspack.dev
148-
GITHUB_TOKEN: ${{ steps.github_creds.outputs.token }}
149-
GITHUB_OIDC_TOKEN: ${{ steps.oidc.outputs.token }}
150-
CFA_PROJECT_ID: ${{ secrets.CFA_PROJECT_ID }}
151-
CFA_SECRET: ${{ secrets.CFA_SECRET }}
147+
ONLY_RELEASE_TAG: true

0 commit comments

Comments
 (0)