2021-05-23 17:41:54 +02:00
|
|
|
name: Deploy package to NPM and GitHub package repository
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2021-05-23 17:47:03 +02:00
|
|
|
- main
|
2021-05-23 17:41:54 +02:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
publish:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
- uses: actions/setup-node@v1
|
|
|
|
with:
|
|
|
|
node-version: 10
|
|
|
|
- run: yarn install
|
2021-05-23 17:47:52 +02:00
|
|
|
- run: yarn build
|
2021-05-23 17:41:54 +02:00
|
|
|
- uses: JS-DevTools/npm-publish@v1
|
|
|
|
with:
|
|
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
registry: https://npm.pkg.github.com
|
|
|
|
- uses: JS-DevTools/npm-publish@v1
|
|
|
|
with:
|
|
|
|
token: ${{ secrets.NPM_TOKEN }}
|
|
|
|
access: public
|