Skip to content

v3.0.0-beta.0

v3.0.0-beta.0 #2

Workflow file for this run

name: Publish Release
on:
release:
types: [published]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
node-version: 18
registry-url: https://registry.npmjs.org/
- run: npm i
- run: npm test
- run: npm run build
- run: npm publish --tag=$(node -p "require('./package.json').version.match(/[0-9]+\.[0-9]+\.[0-9]+(-(.+)\.[0-9]+)?/)[2] || 'latest'")
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}