Skip to content

5.2.1

5.2.1 #47

Workflow file for this run

name: CI
on:
push:
branches:
- main
- master
tags:
- "v*.*.*"
pull_request:
branches:
- main
- master
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20.x
registry-url: "https://registry.npmjs.org"
- run: npm install -g pnpm
- run: pnpm install
- run: pnpm check
- run: |
cd example
pnpm install
pnpm link ..
pnpm build
- name: Publish package to NPM
if: startsWith(github.ref, 'refs/tags/v')
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}