Skip to content

Commit

Permalink
Update npmpublish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
roblarsen authored Nov 6, 2019
1 parent 551f067 commit c6872a5
Showing 1 changed file with 4 additions and 17 deletions.
21 changes: 4 additions & 17 deletions .github/workflows/npmpublish.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Node.js Package
name: publish npm

on:
release:
types: [created]
types: [published]

jobs:
build:
Expand All @@ -13,7 +13,7 @@ jobs:
with:
node-version: 12
- run: npm ci
- run: npm test
- run: npm run build

publish-npm:
needs: build
Expand All @@ -29,17 +29,4 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

publish-gpr:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://npm.pkg.github.com/
scope: '@h5bp'
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 comments on commit c6872a5

Please sign in to comment.