Skip to content

chore(npm): update pnpm to v9.14.2 (#1109) #3370

chore(npm): update pnpm to v9.14.2 (#1109)

chore(npm): update pnpm to v9.14.2 (#1109) #3370

Workflow file for this run

on:
push:
branches:
- main
- develop
pull_request: {}
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup pnpm
uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0
with:
package_json_file: "package.json"
- name: Setup Node.js
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
with:
node-version-file: ".node-version"
cache: "pnpm"
- run: pnpm install
- run: pnpm lint
test:
name: Test
runs-on: ${{ matrix.os }}
strategy:
matrix:
node: ["18", "20"]
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup pnpm
uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0
with:
package_json_file: "package.json"
- name: Setup Node.js
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
with:
node-version-file: ".node-version"
cache: "pnpm"
- run: pnpm install
- run: pnpm test
passed:
name: All CI passed
runs-on: ubuntu-latest
needs:
- lint
- test
if: always()
steps:
- uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
env:
RESULT_JSON: ${{ toJSON(needs) }}
with:
script: |
const result = JSON.parse(process.env.RESULT_JSON);
const passed = Object.values(result).every(({ result }) => result === 'success');
if (!passed) process.exit(1);
release:
name: Release
if: github.ref == 'refs/heads/main'
concurrency:
group: release
cancel-in-progress: false
needs:
- passed
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
ssh-key: ${{ secrets.DEPLOY_GIT_SSH_PRIVATE_KEY }}
- name: Setup pnpm
uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0
with:
package_json_file: "package.json"
- name: Setup Node.js
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
with:
node-version-file: ".node-version"
cache: "pnpm"
- run: pnpm install
- run: pnpm build
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: pnpm run semantic-release