Skip to content

Version 0.2.3

Version 0.2.3 #18

name: Build and publish
on:
release:
types: [created]
workflow_dispatch:
jobs:
build_and_publish:
permissions:
id-token: write
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
with:
version: 9
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 22
registry-url: 'https://registry.npmjs.org'
cache: 'pnpm'
- name: Install packages
run: pnpm install --frozen-lockfile
- name: Build
run: pnpm build
- name: Publish
run: pnpm publish --no-git-checks --access="public"
env:
NODE_AUTH_TOKEN: ${{ secrets.AUTH_TOKEN }}
NPM_CONFIG_PROVENANCE: true