Skip to content

Commit a04811b

Browse files
committed
Update Github Workflow
1 parent b9f7c53 commit a04811b

File tree

1 file changed

+4
-16
lines changed

1 file changed

+4
-16
lines changed

.github/workflows/npm-publish.yml

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
2-
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
3-
41
name: Node.js Package
52

63
on:
@@ -30,16 +27,6 @@ jobs:
3027
draft: false
3128
prerelease: false
3229

33-
# build:
34-
# runs-on: ubuntu-latest
35-
# steps:
36-
# - uses: actions/checkout@v2
37-
# - uses: actions/setup-node@v1
38-
# with:
39-
# node-version: 12
40-
# - run: npm ci
41-
# - run: npm test
42-
4330
publish-npm:
4431
needs: build
4532
runs-on: ubuntu-latest
@@ -49,7 +36,8 @@ jobs:
4936
with:
5037
node-version: 12
5138
registry-url: https://registry.npmjs.org/
52-
- run: npm ci
39+
- run: yarn install
40+
- run: yarn build
5341
- run: npm publish
5442
env:
5543
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
@@ -63,7 +51,7 @@ jobs:
6351
with:
6452
node-version: 12
6553
registry-url: https://npm.pkg.github.com/
66-
- run: npm ci
67-
- run: npm publish
54+
- run: yarn install
55+
- run: yarn build
6856
env:
6957
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 commit comments

Comments
 (0)