Skip to content

chore(deps): update pnpm to v12 #4444

chore(deps): update pnpm to v12

chore(deps): update pnpm to v12 #4444

Workflow file for this run

name: CI
on:
push:
branches: [main, v5, v4.x, renovate/**]
pull_request: {}
permissions:
contents: read
jobs:
test:
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20, 22, 24, 26]
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Setup pnpm
uses: pnpm/action-setup@0977fd99725f1db4007ccb2928dbb4e90d06cc86 # v6.0.10
with:
standalone: ${{ matrix.node-version <= 20 }}
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: ${{ matrix.node-version }}
cache: pnpm
- name: Install Dependencies
run: pnpm install --frozen-lockfile
- name: Lint
run: pnpm lint
- name: Unit Tests
run: pnpm unittest
compatibility:
name: markdown-it Backwards Compatibility
runs-on: ubuntu-latest
strategy:
matrix:
mi-version:
- 7.0.1
- 8.4.2
- 9.1.0
- 10.0.0
- 11.0.1
- 12.3.2
- 13.0.2
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Setup pnpm
uses: pnpm/action-setup@0977fd99725f1db4007ccb2928dbb4e90d06cc86 # v6.0.10
- name: Setup Node.js
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version-file: .nvmrc
package-manager-cache: false
- name: Apply markdown-it v${{ matrix.mi-version }}
run: pnpm install --lockfile-only markdown-it@${{ matrix.mi-version }}
- name: Cache pnpm Store
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version-file: .nvmrc
cache: pnpm
- name: Install Dependencies
run: pnpm install --frozen-lockfile
- name: Unit Tests
run: npm run unittest
release:
name: Release Check
runs-on: ubuntu-latest
needs: test
if: github.event_name == 'push'
permissions:
id-token: write # to enable use of OIDC for trusted publishing and npm provenance
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Setup pnpm
uses: pnpm/action-setup@0977fd99725f1db4007ccb2928dbb4e90d06cc86 # v6.0.10
- name: Setup Node.js
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version-file: .nvmrc
cache: pnpm
- name: Install Dependencies
run: pnpm install --frozen-lockfile
- name: Release Check
run: pnpm release
env:
GITHUB_TOKEN: ${{ github.token }}