Create publish_on_release.yml
This commit is contained in:
15
.github/workflows/publish_on_release.yml
vendored
Normal file
15
.github/workflows/publish_on_release.yml
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
name: Publish Node.js Package
|
||||
on:
|
||||
release:
|
||||
types: [created]
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
# Setup .npmrc file to publish to npm
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: '12.x'
|
||||
registry-url: 'https://registry.npmjs.org'
|
||||
- run: npm install
|
||||
Reference in New Issue
Block a user