2020-07-23 11:08:56 +05:00
|
|
|
name: Node.js Package
|
|
|
|
|
|
|
|
on:
|
|
|
|
release:
|
|
|
|
types: [created]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
|
|
|
publish-npm:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-node@v1
|
|
|
|
with:
|
|
|
|
node-version: 12
|
|
|
|
registry-url: https://registry.npmjs.org/
|
2021-04-25 15:48:11 +05:00
|
|
|
- run: yarn install
|
|
|
|
- run: yarn run build
|
|
|
|
- run: yarn publish
|
2020-07-23 11:08:56 +05:00
|
|
|
env:
|
|
|
|
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
|