Skip to content
This repository was archived by the owner on Nov 21, 2023. It is now read-only.

Commit eb4125b

Browse files
committed
fix(npm): fix gh action npm publish workflow to yarn based
1 parent fd031af commit eb4125b

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/npm.yml

+7-5
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
uses: actions/setup-node@v1
2020
with:
2121
node-version: ${{ matrix.node-version }}
22-
- run: npm install
22+
- run: yarn
2323

2424
publish:
2525
runs-on: ubuntu-latest
@@ -31,11 +31,13 @@ jobs:
3131
with:
3232
node-version: ${{ matrix.node-version }}
3333
- run: npm ci
34+
- name: Lint source code
35+
run: yarn lint
3436
- name: Set package registry
35-
run: npm config set registry https://npm.pkg.github.com
37+
run: yarn config set registry https://npm.pkg.github.com
3638
- name: Github package registry authentication
37-
run: npm set //npm.pkg.github.com/:_authToken ${{ secrets.GPR_TOKEN }}
39+
run: yarn set //npm.pkg.github.com/:_authToken ${{ secrets.GPR_TOKEN }}
3840
- name: Npm registry authentication
39-
run: npm set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN }}
41+
run: yarn set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN }}
4042
- name: Publish package to Github and Npm package registries
41-
run: npm publish
43+
run: yarn publish

0 commit comments

Comments
 (0)