Skip to content

Commit 147b672

Browse files
committed
update workflow
1 parent 11cd7cd commit 147b672

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

.github/workflows/npm-publish.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,6 @@ on:
1111
- "komal/npm-publish"
1212

1313
jobs:
14-
build:
15-
runs-on: ubuntu-latest
16-
steps:
17-
- uses: actions/checkout@v3
18-
- uses: actions/setup-node@v3
19-
with:
20-
node-version: ^20.4.0
21-
- run: yarn install --ignore-engines --frozen-lockfile
2214
publish-npm:
2315
needs: build
2416
runs-on: ubuntu-latest
@@ -28,6 +20,9 @@ jobs:
2820
with:
2921
node-version: ^20.4.0
3022
registry-url: https://registry.npmjs.org/
31-
- run: npm publish
23+
- name: Yarn install
24+
run: yarn install --ignore-engines --frozen-lockfile
25+
- name: Publish npm package
26+
run: npm publish
3227
env:
3328
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}

0 commit comments

Comments
 (0)