Skip to content

CI/CD modernization and comprehensive tests (no runtime changes) #34

CI/CD modernization and comprehensive tests (no runtime changes)

CI/CD modernization and comprehensive tests (no runtime changes) #34

Workflow file for this run

name: Publish on Release
on:
release:
types: [published]
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: 'yarn'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Build
run: yarn build
- name: Publish to npm
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
run: npm publish --access public || true