chore(deps): update pnpm to v9 #2167
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
--- | |
on: # yamllint disable-line rule:truthy | |
merge_group: | |
push: | |
branches: | |
- master | |
- develop | |
# Only consider those paths to trigger the action | |
paths: | |
- 'packages/**' | |
- 'package.json' | |
- 'pnpm*' | |
- '.github/**' | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
- reopened | |
# Only consider those paths to trigger the action | |
paths: | |
- 'packages/**' | |
- 'package.json' | |
- 'pnpm*' | |
- '.github/**' | |
name: 🔍 Continuous integration for packages | |
jobs: | |
integration: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: true | |
matrix: | |
os: ['ubuntu-latest'] | |
node: ['20'] | |
steps: | |
- name: 📦 Check out the codebase | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: ⚙️ Setup node ${{ matrix.node }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node }} | |
registry-url: 'https://registry.npmjs.org/' | |
- name: 📥 Monorepo install | |
uses: wayofdev/gh-actions/actions/pnpm-install@master | |
with: | |
enable-corepack: true | |
cache-node-modules: true | |
- name: 📤 Restore packages cache | |
uses: actions/cache@v4 | |
with: | |
path: | | |
${{ github.workspace }}/.cache | |
${{ github.workspace }}/**/tsconfig.tsbuildinfo | |
key: ${{ runner.os }}-packages-cache-${{ hashFiles('**/pnpm*.yaml') }}-${{ hashFiles('packages/**.[jt]sx?', 'packages/**.json') }} | |
restore-keys: | | |
${{ runner.os }}-packages-cache-${{ hashFiles('**/pnpm*.yaml') }}- | |
- if: github.event_name == 'pull_request' | |
name: 🔍 Validate all commits from PR | |
uses: wagoid/commitlint-github-action@v6 | |
env: | |
NODE_PATH: ${{ github.workspace }}/node_modules | |
# Lint packages that have changed (--include & --since) | |
- name: 🚨 Lint | |
run: | | |
pnpm --filter "...[origin/master]" run lint |