Skip to content

Commit 411e9cd

Browse files
committed
Fix publish CI script
1 parent 4154e1d commit 411e9cd

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

.github/workflows/publish.yml

+3-6
Original file line numberDiff line numberDiff line change
@@ -26,21 +26,18 @@ jobs:
2626
run: npm install -g pnpm@10
2727
- name: Install
2828
if: steps.check.outputs.changed == 'true'
29-
run: pnpm
29+
run: pnpm install
3030
- name: Build
3131
if: steps.check.outputs.changed == 'true'
3232
run: pnpm build
3333
- name: Test
3434
if: steps.check.outputs.changed == 'true'
3535
run: pnpm test
36-
- name: Setup publish token
37-
if: steps.check.outputs.changed == 'true'
38-
run: echo "//registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN}" > .npmrc
39-
env:
40-
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
4136
- name: Publish
4237
if: steps.check.outputs.changed == 'true'
4338
run: |
4439
pnpm publish
4540
git tag v$(jq '.version' package.json -r)
4641
git push --tags
42+
env:
43+
npm_config_//registry.npmjs.org/:_authToken: ${{ secrets.NPM_AUTH_TOKEN }}

0 commit comments

Comments
 (0)