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
7 changes: 7 additions & 0 deletions .github/workflows/commitlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@ jobs:
with:
node-version: "24"

- name: Enable pnpm
run: |
# Node 24 ships corepack; later Node majors do not, so a node-version bump
# must install pnpm another way.
corepack enable
corepack prepare pnpm@12.4.1 --activate

- name: Prepare commitlint
run: scripts/install_commitlint.sh

Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,14 @@ jobs:
with:
node-version: "24"

- name: Enable pnpm
if: ${{ steps.release-pr.outputs.found == 'true' }}
run: |
# Node 24 ships corepack; later Node majors do not, so a node-version bump
# must install pnpm another way.
corepack enable
corepack prepare pnpm@12.4.1 --activate

- name: Mark release PR commitlint pending
if: ${{ steps.release-pr.outputs.found == 'true' }}
env:
Expand Down
12 changes: 12 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,18 @@
"datasourceTemplate": "npm",
"packageNameTemplate": "tessl",
"versioningTemplate": "semver"
},
{
"customType": "regex",
"managerFilePatterns": [
"/^\\.github/workflows/(?:commitlint|release-please)\\.yml$/"
],
"matchStrings": [
"corepack prepare pnpm@(?<currentValue>\\d+\\.\\d+\\.\\d+)"
],
"depNameTemplate": "pnpm",
"datasourceTemplate": "npm",
"versioningTemplate": "semver"
}
],
"packageRules": [
Expand Down
2 changes: 1 addition & 1 deletion scripts/commitlint_release_pr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ commitlint_home="${RUNNER_TEMP:-$(mktemp -d)}/commitlint"
mkdir -p "$commitlint_home"
printf '{"private":true}\n' > "$commitlint_home/package.json"
cp commitlint.config.cjs "$commitlint_home/commitlint.config.cjs"
npm --prefix "$commitlint_home" install --silent --ignore-scripts \
pnpm --dir "$commitlint_home" add --silent --ignore-scripts \
@commitlint/cli@21.2.2 \
@commitlint/config-conventional@21.2.2

Expand Down
2 changes: 1 addition & 1 deletion scripts/install_commitlint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ commitlint_home="${RUNNER_TEMP:-$(mktemp -d)}/commitlint"
mkdir -p "$commitlint_home"
printf '{"private":true}\n' > "$commitlint_home/package.json"
cp commitlint.config.cjs "$commitlint_home/commitlint.config.cjs"
npm --prefix "$commitlint_home" install --silent --ignore-scripts \
pnpm --dir "$commitlint_home" add --silent --ignore-scripts \
@commitlint/cli@21.2.2 \
@commitlint/config-conventional@21.2.2

Expand Down
Loading