Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 9 additions & 32 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,9 @@ jobs:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9
- name: Set node
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
- uses: pnpm/setup@84cb39b217b10273981911c288cd62326dc7c6d2 # v2.0.2
with:
node-version-file: .nvmrc
cache: pnpm
cache-dependency-path: pnpm-lock.yaml
- name: Install
run: pnpm install --frozen-lockfile
cache: true
- name: Lint
run: pnpm run lint
- name: Format check
Expand All @@ -55,15 +49,10 @@ jobs:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9
- name: Set node
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
- uses: pnpm/setup@84cb39b217b10273981911c288cd62326dc7c6d2 # v2.0.2
with:
node-version: ${{ matrix.node-version }}
cache: pnpm
cache-dependency-path: pnpm-lock.yaml
- name: Install
run: pnpm install --frozen-lockfile
runtime: node@${{ matrix.node-version }}
cache: true
- name: Build
run: pnpm build
- name: Test
Expand Down Expand Up @@ -93,15 +82,9 @@ jobs:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9
- name: Set node
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
- uses: pnpm/setup@84cb39b217b10273981911c288cd62326dc7c6d2 # v2.0.2
with:
node-version-file: .nvmrc
cache: pnpm
cache-dependency-path: pnpm-lock.yaml
- name: Install
run: pnpm install --frozen-lockfile
cache: true
- name: Pin ${{ matrix.name }}
run: pnpm --filter @symfony/reprise add -D ${{ matrix.add }}
- name: Build
Expand Down Expand Up @@ -218,15 +201,9 @@ jobs:
dependency-versions: highest
composer-options: --prefer-dist
custom-cache-suffix: ${{ matrix.symfony-version }}
- uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9
- name: Set node
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
- uses: pnpm/setup@84cb39b217b10273981911c288cd62326dc7c6d2 # v2.0.2
with:
node-version-file: .nvmrc
cache: pnpm
cache-dependency-path: pnpm-lock.yaml
- name: Install JS dependencies
run: pnpm install --frozen-lockfile
cache: true
- name: Pin ${{ matrix.name }}
if: matrix.add
run: pnpm -C playground add -D ${{ matrix.add }}
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/release-on-npm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ jobs:
fi
echo "Tag ${GITHUB_REF_NAME} verified as ancestor of main."

# Pinned explicitly to avoid pulling a compromised "latest" at release time; bump via dedicated PR.
- run: npm i -g corepack@0.35.0 && corepack enable
- uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9
# setup-node is kept here (instead of pnpm/setup) because its `registry-url` input is
# what wires npm OIDC trusted publishing.
# setup-node does not enable any package-manager cache here (no `cache:` input),
# so cache poisoning is not a concern on this release workflow.
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # zizmor: ignore[cache-poisoning] v7.0.0
Expand Down
5 changes: 2 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,11 @@ $ git remote add upstream git@github.com:symfony/reprise.git
- **PHP 8.4 or higher**
- **Composer**
- **Node.js 22 or higher**
- **Corepack**
- **pnpm 11.10 or higher**
- **[pnpm](https://pnpm.io/installation) 11.10 or higher**

```shell
$ composer install
$ corepack enable && pnpm install
$ pnpm install
```

> [!IMPORTANT]
Expand Down
7 changes: 7 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@
"engines": {
"node": "^22.18.0 || ^24.11.0 || >=26.0"
},
"devEngines": {
"runtime": {
"name": "node",
"version": "^22.18.0",
"onFail": "warn"
}
},
"scripts": {
"build": "pnpm -C assets run build",
"dev": "pnpm -C assets run dev",
Expand Down
Loading