Skip to content

Commit 9648cf7

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

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Publish package
1+
name: Publish package to npmjs
22

33
on:
44
release:
@@ -9,11 +9,17 @@ 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+
registry-url: "https://registry.npmjs.org"
18+
cache: 'yarn'
19+
1520
- run: yarn
21+
1622
- name: Publish to npm
17-
run: yarn publish
23+
run: yarn npm publish
1824
env:
1925
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)