Skip to content

Commit

Permalink
chore(github action): add Publish action
Browse files Browse the repository at this point in the history
  • Loading branch information
clok committed Mar 8, 2021
1 parent 230c510 commit 8da4139
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Publish

on:
push:
branches:
- "!*"
tags:
- "*"

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 12
registry-url: https://registry.npmjs.org/
- run: npm install
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.ORG_NPM_TOKEN}}

0 comments on commit 8da4139

Please sign in to comment.