Skip to content

v0.0.12

v0.0.12 #12

Workflow file for this run

name: Publish class packages
on:
release:
types: [published]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "pnpm"
cache-dependency-path: ./pnpm-lock.yaml
registry-url: https://registry.npmjs.org/
- run: pnpm install
- run: pnpm build
working-directory: packages/class
- run: |
if [[ $GITHUB_REF_NAME == *next* ]]; then
pnpm publish --tag next --no-git-checks
else
pnpm publish --no-git-checks
fi
working-directory: packages/class
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}