Browse Source

Merge pull request #144 from henninghall/npm-publish-action

Npm publish action
master
Henning Hall 5 years ago
committed by GitHub
parent
commit
56585f1bf7
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 19 additions and 0 deletions
  1. +19
    -0
      .github/workflows/main.yml

+ 19
- 0
.github/workflows/main.yml View File

@ -0,0 +1,19 @@
name: Publish
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://registry.npmjs.org/
- run: yarn install
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

Loading…
Cancel
Save