Skip to content

Commit

Permalink
build and test across all GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
jpwilliams committed Dec 21, 2019
1 parent fd87f14 commit 1d6f8cb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/testAndPublishOnTag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ jobs:
with:
node-version: 12
- run: npm ci
- run: npm test
- run: npm run build
- run: npm run test

publish-npm:
needs: build
Expand All @@ -25,6 +26,8 @@ jobs:
with:
node-version: 12
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm run build
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
Expand All @@ -39,6 +42,8 @@ jobs:
node-version: 12
registry-url: https://npm.pkg.github.com/
scope: '@jpwilliams'
- run: npm ci
- run: npm run build
- name: 'publish to gpr'
run: |
npm publish --registry=https://npm.pkg.github.com/jpwilliams --scope=@jpwilliams
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/testOnPush.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ jobs:
with:
node-version: 12
- run: npm ci
- run: npm test
- run: npm run build
- run: npm run test

0 comments on commit 1d6f8cb

Please sign in to comment.