svelte.sk-auth/.github/workflows/npm-publish.yml

21 lines
436 B
YAML
Raw Normal View History

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:
2021-05-23 17:49:32 +02:00
node-version: 14
- run: yarn install
- run: yarn build
- uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
access: public