Skip to content

Commit

Permalink
publish action added
Browse files Browse the repository at this point in the history
  • Loading branch information
nklhtv committed Jun 9, 2020
1 parent 5521891 commit 1687ccd
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Publish

on:
release:
types: [published]

jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Setup NodeJS
uses: actions/setup-node@v1
with:
node-version: 10
registry-url: https://registry.npmjs.org/
- name: Checkout
uses: actions/checkout@v2
- name: Install NPM Dependencies
run: npm install
- name: Publish to NPM
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}

0 comments on commit 1687ccd

Please sign in to comment.