chore: bump pnpm. #1083
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: | |
paths: | |
- 'src/**' | |
push: | |
branches: | |
- '**' | |
tags: | |
- '!**' | |
paths: | |
- 'src/**' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.number }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
if: > | |
(github.event_name == 'push' && | |
github.event.head_commit != null && | |
startsWith(github.event.head_commit.message, 'release:') == false) || | |
github.event_name == 'pull_request' | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: lts/* | |
cache: pnpm | |
- name: Install pnpm | |
run: npm install -g pnpm | |
- name: Install | |
run: pnpm install | |
- name: Release | |
run: pnpm dlx pkg-pr-new publish --compact --packageManager=pnpm --pnpm './src' |