Skip to content

Workflow file for this run

name: "Publish latest version to npm"
on:
release:
types: [released]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: '16'
registry-url: 'https://registry.npmjs.org'
- run: npm ci --no-progress
- run: npm run build
- run: npm version --no-push --no-git-tag-version --yes ${{ github.event.release.tag_name }}
- run: npm publish --tag latest
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}