Skip to content

Commit 249d95b

Browse files
committed
Add build to publish
1 parent da038aa commit 249d95b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/npmpublish.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Node.js Package
1+
name: Deploy
22

33
on:
44
release:
@@ -13,7 +13,7 @@ jobs:
1313
with:
1414
node-version: 12
1515
- run: npm i
16-
- run: npm test
16+
- run: npm run build && npm test
1717

1818
publish-npm:
1919
needs: build
@@ -25,7 +25,7 @@ jobs:
2525
node-version: 12
2626
registry-url: https://registry.npmjs.org/
2727
- run: npm i
28-
- run: npm publish
28+
- run: npm run build && npm publish
2929
env:
3030
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
3131

@@ -40,6 +40,6 @@ jobs:
4040
registry-url: https://npm.pkg.github.com/
4141
scope: '@trickypr'
4242
- run: npm i
43-
- run: npm publish
43+
- run: npm run build && npm publish
4444
env:
4545
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 commit comments

Comments
 (0)