svgedit/.github/workflows/npmpublish.yml
Workflow config file is invalid. Please check your config file: yaml: line 16: could not find expected ':'

35 lines
681 B
YAML

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}}