adds action

This commit is contained in:
Rob Larsen
2019-11-05 12:14:33 -05:00
parent fb3b47212d
commit e7ae4b371c

View File

@@ -1,8 +1,8 @@
name: Node.js Package
name: publish npm
on:
release:
types: [created]
types: [published]
jobs:
build:
@@ -13,7 +13,7 @@ jobs:
with:
node-version: 12
- run: npm ci
- run: npm test
- run: npm run build
publish-npm:
needs: build
@@ -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}}