mirror of
https://github.com/pnpm/action-setup.git
synced 2026-11-03 20:40:57 +00:00
* fix: skip saving missing cache directories * ci: run cache regression tests on Node.js 24
36 lines
836 B
YAML
36 lines
836 B
YAML
name: pr-check
|
|
|
|
on: [ pull_request ]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
check-dist:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
|
|
- name: Setup pnpm
|
|
uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v6.1.0
|
|
with:
|
|
run_install: true
|
|
version: 11
|
|
|
|
- uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6
|
|
with:
|
|
node-version: 24
|
|
|
|
- name: Test
|
|
run: pnpm test
|
|
|
|
- name: Update dist/index.js
|
|
run: pnpm run build
|
|
|
|
- name: Check for uncommitted changes in dist
|
|
run: git diff --exit-code dist/index.js
|