Skip to content

Use latest pkg for docs #1

Use latest pkg for docs

Use latest pkg for docs #1

Workflow file for this run

on:
push:
branches:
- master
paths:
- 'lib/**'
- 'publish-npm.yml'
- 'package.json'
- 'pnpm-lock.yaml'
- 'vite.config.js'
- 'README.md'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: Publish to NPM
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: latest
run_install: false
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: pnpm install
- name: Build
run: pnpm build-lib
- name: Publish
run: pnpm publish --access public --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}