2022-08-14 14:33:56 +00:00
|
|
|
name: manage npm release on demand
|
|
|
|
|
|
|
|
on: workflow_dispatch
|
|
|
|
|
|
|
|
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
|
|
|
|
npm run build
|
|
|
|
|
|
|
|
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/
|
2022-08-14 14:52:47 +00:00
|
|
|
- run: |
|
|
|
|
npm ci
|
|
|
|
npm run build --workspace=packages/svgcanvas
|
|
|
|
npm publish
|
2022-08-14 14:33:56 +00:00
|
|
|
env:
|
|
|
|
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
|
|
|
|
|
|
|
|