build: use v2 as the default npm tag #150
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish Any Commit | |
on: | |
pull_request: | |
branches: [v2] | |
paths-ignore: | |
- 'packages/docs/**' | |
- 'packages/playground/**' | |
push: | |
branches: | |
- '**' | |
tags: | |
- '!**' | |
paths-ignore: | |
- 'packages/docs/**' | |
- 'packages/playground/**' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: pnpm/action-setup@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: lts/* | |
cache: pnpm | |
- name: Install | |
run: pnpm install --frozen-lockfile | |
- name: Build | |
run: pnpm build | |
- name: Release | |
run: pnpm dlx pkg-pr-new publish --compact --pnpm './packages/*' |