Browse Source

Create autopublish.yml

pull/4/head
Muryor 3 years ago committed by GitHub
parent
commit
ce1e7a84b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 19
      .github/workflows/autopublish.yml

19
.github/workflows/autopublish.yml

@ -0,0 +1,19 @@ @@ -0,0 +1,19 @@
name: Node.js Package
on:
push:
branches:
- main
jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: "12.x"
registry-url: https://registry.npmjs.org/
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
Loading…
Cancel
Save