Skip to content

Commit f336217

Browse files
committed
fix(ci): fix publish on npm workflow
1 parent 1c18dde commit f336217

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,16 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- uses: actions/checkout@v4
12-
- uses: actions/setup-node@v4
12+
13+
- name: Set up Node.js
14+
uses: actions/setup-node@v4
1315
with:
14-
registry-url: 'https://registry.npmjs.org'
16+
node-version: 18
17+
cache: 'yarn'
18+
1519
- run: yarn
20+
1621
- name: Publish to npm
17-
run: yarn publish
22+
run: yarn npm publish
1823
env:
19-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
24+
NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)