Skip to content

Workflow file for this run

name: Create new Github Release and publish to NPM
on:
push:
tags:
- v*
jobs:
release:
name: "New Release from version Tag"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 20
- run: npm install
- run: npm run build
- run: npm pack
- uses: ncipollo/release-action@v1
with:
artifacts: "*.tgz"
generateReleaseNotes: true
token: ${{ secrets.GITHUB_TOKEN }}
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}