Skip to content

Commit

Permalink
Fix NPM publishing Action (#194)
Browse files Browse the repository at this point in the history
Co-authored-by: Bart Veneman <bart.veneman@drukwerkdeal.nl>
  • Loading branch information
bartveneman and Bart Veneman committed Jan 31, 2021
1 parent 0d26b04 commit d6e1fc5
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,18 @@
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages

name: Node.js Package

on:
release:
types: [created]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v1
with:
node-version: 12
- run: npm ci
- run: npm test

publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
node-version: '12.x'
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm publish
Expand Down

0 comments on commit d6e1fc5

Please sign in to comment.