mirror of
https://github.com/Dan6erbond/sk-auth.git
synced 2024-11-20 19:07:20 +01:00
25 lines
583 B
YAML
25 lines
583 B
YAML
name: Deploy package to NPM and GitHub package repository
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
publish:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- uses: actions/setup-node@v1
|
|
with:
|
|
node-version: 10
|
|
- run: yarn install
|
|
- run: yarn build
|
|
- 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
|