publish on release

This commit is contained in:
JFH
2022-08-14 15:27:00 +02:00
parent 43bf93968a
commit 6b68b0c6ef
5 changed files with 45 additions and 57 deletions

34
.github/workflows/npmpublish.yml vendored Normal file
View File

@@ -0,0 +1,34 @@
name: manage npm release
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16.x
- run: |
npm ci
npm run build --workspace=packages/svgcanvas
npm run lint
npm run test
publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://registry.npmjs.org/
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

View File

@@ -1,4 +1,4 @@
name: Node CI
name: check each push
on: [push]