Skip to content

Prepare distrubuyion and build workflow (#4) #2

Prepare distrubuyion and build workflow (#4)

Prepare distrubuyion and build workflow (#4) #2

Workflow file for this run

name: Release
on:
push:
tags:
- 'v*'
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
registry-url: https://registry.npmjs.org
- run: npm ci
- run: npm run lint
- run: npm run format:check
- run: npm run test
- run: npm run build
- name: Publish to npm
run: npm publish --workspaces --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true