Skip to content

Workflow file for this run

name: npm publish
on:
release:
types: [released]
jobs:
npm-publish:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}}
permissions:
actions: write
checks: write
contents: write
steps:
- uses: actions/checkout@v4
with:
ref: main
- uses: actions/setup-node@v3
with:
node-version: ${{ vars.NODE_VERSION }}
registry-url: https://registry.npmjs.org
- run: npm ci
- run: npm run lint
- run: npm run test
- run: npm run build
- id: parse
uses: ./.github/actions/parse-git-tag
- name: publish package
uses: ./.github/actions/publish-package
with:
version: ${{ steps.parse.outputs.version }}
package: ${{ steps.parse.outputs.package }}