Skip to content
Open
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
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Setup Node.js + pnpm
name: Setup Tooling
description: Install pnpm, set up Node.js with pnpm cache, install workspace deps.

inputs:
Expand Down Expand Up @@ -29,3 +29,7 @@ runs:
if: ${{ inputs.install == 'true' }}
shell: bash
run: pnpm install --frozen-lockfile

- name: Install zip
shell: bash
run: sudo apt-get update && sudo apt-get install -y zip
3 changes: 1 addition & 2 deletions .github/workflows/re-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ jobs:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4

- name: Setup Node.js + pnpm
uses: ./.github/actions/setup-node-pnpm

uses: ./.github/actions/setup-tooling
- name: Build all packages
run: pnpm build

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/re-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
args: -color

- name: Setup Node.js + pnpm
uses: ./.github/actions/setup-node-pnpm
uses: ./.github/actions/setup-tooling

- name: Format check
run: pnpm format:check
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/re-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4

- name: Setup Node.js + pnpm
uses: ./.github/actions/setup-node-pnpm
uses: ./.github/actions/setup-tooling
with:
node-version: ${{ matrix.node-version }}

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/re-visual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ jobs:
- name: Install workspace deps
run: pnpm install --frozen-lockfile

- name: Install zip
run: apt-get update && apt-get install -y zip

- name: Build packages (docs needs uikit + uikit-css + uikit-js + uikit-icons dists)
run: pnpm build

Expand Down
2 changes: 1 addition & 1 deletion docs/tooling.md
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ GitHub Actions live in `.github/workflows/`:
[`docs/adr/0008-cloudflare-pages-git-integration.md`](./adr/0008-cloudflare-pages-git-integration.md)
and [`docs/runbooks/deploy-docs.md`](./runbooks/deploy-docs.md).

Composite action `.github/actions/setup-node-pnpm/action.yml` installs pnpm
Composite action `.github/actions/setup-tooling/action.yml` installs pnpm
and Node, with `node-version` defaulting to `22` (the floor).

## Husky + lint-staged
Expand Down
4 changes: 2 additions & 2 deletions scripts/check-node-versions.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ console.log('.nvmrc');
}

// 4. composite action default
console.log('setup-node-pnpm action default');
console.log('setup-tooling action default');
{
const yml = readText('.github/actions/setup-node-pnpm/action.yml');
const yml = readText('.github/actions/setup-tooling/action.yml');
const m = yml.match(/node-version:[\s\S]*?default:\s*'(\d+)'/);
if (!m) {
fail(`action.yml: cannot parse node-version default`);
Expand Down
Loading