chore(deps): update pnpm to v12 #4452
Workflow file for this run
This file contains hidden or 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: 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: [22, 24, 26] | |
| 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 ${{ 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: | |
| # This matrix lists every supported markdown-it major's latest line; when markdown-it ships a new major, add a leg to preserve the backwards-compatibility infrastructure for future majors. | |
| mi-version: | |
| - 15 | |
| 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: Type-check | |
| run: pnpm lint:types | |
| - name: Unit Tests | |
| run: npm run unittest | |
| consuming: | |
| name: Consuming Project Smoke Tests | |
| runs-on: ubuntu-latest | |
| 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: Build | |
| run: pnpm build | |
| - name: Lint Package | |
| run: pnpm lint:package | |
| - name: Pack | |
| run: pnpm pack --pack-destination "$RUNNER_TEMP/v5-smoke" | |
| - name: Test ESM Consumer | |
| working-directory: test-consuming/esm | |
| run: rm -rf node_modules dist && npm install --no-save --package-lock=false "$RUNNER_TEMP/v5-smoke/markdown-it-prism-0.0.0-development.tgz" markdown-it@^15 prismjs typescript@^7 @types/node && npx tsc -p tsconfig.json && node dist/test.mjs | |
| - name: Test CJS Consumer | |
| working-directory: test-consuming/cjs | |
| run: rm -rf node_modules dist && npm install --no-save --package-lock=false "$RUNNER_TEMP/v5-smoke/markdown-it-prism-0.0.0-development.tgz" markdown-it@^15 prismjs typescript@^7 @types/node && npx tsc -p tsconfig.json && node dist/test.cjs | |
| - name: Test Webpack Consumer | |
| working-directory: test-consuming/webpack | |
| run: rm -rf node_modules dist && npm install --no-save --package-lock=false "$RUNNER_TEMP/v5-smoke/markdown-it-prism-0.0.0-development.tgz" markdown-it@^15 prismjs webpack@5.109.2 jsdom@30.0.1 && node build.mjs && node run.mjs B | |
| - name: Test Vite Consumer | |
| working-directory: test-consuming/vite | |
| run: rm -rf node_modules dist && npm install --no-save --package-lock=false "$RUNNER_TEMP/v5-smoke/markdown-it-prism-0.0.0-development.tgz" markdown-it@^15 prismjs vite@8.2.0 jsdom@30.0.1 && npx --no-install vite build && node run.mjs B | |
| - name: Verify Clean Worktree | |
| run: | | |
| git status --porcelain | |
| test -z "$(git status --porcelain)" | |
| release: | |
| name: Release Check | |
| runs-on: ubuntu-latest | |
| needs: [test, compatibility, consuming] | |
| 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 }} |