Skip to content

Commit

Permalink
CI: added a publish action when a release is published
Browse files Browse the repository at this point in the history
  • Loading branch information
f4exb committed Feb 24, 2020
1 parent 5255173 commit 63ad0c5
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
File renamed without changes.
21 changes: 21 additions & 0 deletions .github/workflows/nodejs-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Node.js Publish

on:
release:
types: [published]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 12
uses: actions/setup-node@v1
with:
node-version: 12
- run: npm install
- run: npm run build --if-present
- run: npm test
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_SECRET}}

0 comments on commit 63ad0c5

Please sign in to comment.