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@v3
- uses: actions/setup-node@v3
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- 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 }}