Skip to content

Commit fe33af8

Browse files
committed
Update CI workflows
- Bump actions to latest majors: checkout v6, setup-node v6, pnpm/action-setup v6, upload-pages-artifact v5, deploy-pages v5 - Pin pnpm via packageManager field; drop hardcoded action-setup version so CI matches the version that wrote the lockfile - Align Node to 24 across all workflows - build: add least-privilege contents:read permission - pages: drop redundant typecheck/test (build.yml gates those; typedoc type-resolves on build), leaving a minimal build-and-deploy job - npm-publish: scope trigger to its own workflow file instead of all of .github/workflows so unrelated workflow edits no longer trigger a publish
1 parent 4640ab1 commit fe33af8

4 files changed

Lines changed: 18 additions & 23 deletions

File tree

.github/workflows/build.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,23 @@ name: Build
22

33
on: [push]
44

5+
permissions:
6+
contents: read
7+
58
jobs:
69
check:
710
runs-on: ubuntu-latest
811
steps:
912
- name: Checkout
10-
uses: actions/checkout@v4
13+
uses: actions/checkout@v6
1114

1215
- name: Install pnpm
13-
uses: pnpm/action-setup@v4
14-
with:
15-
version: 9
16+
uses: pnpm/action-setup@v6
1617

1718
- name: Install Node.js
18-
uses: actions/setup-node@v4
19+
uses: actions/setup-node@v6
1920
with:
20-
node-version: "22"
21+
node-version: "24"
2122
cache: "pnpm"
2223

2324
- name: Install Node dependencies

.github/workflows/npm-publish.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ on:
66
- master
77
paths:
88
- src/**
9-
- .github/workflows/**
9+
- package.json
10+
- .github/workflows/npm-publish.yml
1011

1112
jobs:
1213
publish:
@@ -15,8 +16,8 @@ jobs:
1516
contents: read
1617
id-token: write
1718
steps:
18-
- uses: actions/checkout@v4
19-
- uses: actions/setup-node@v4
19+
- uses: actions/checkout@v6
20+
- uses: actions/setup-node@v6
2021
with:
2122
node-version: "24"
2223
registry-url: "https://registry.npmjs.org"

.github/workflows/pages.yml

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -28,33 +28,25 @@ jobs:
2828
runs-on: ubuntu-latest
2929
steps:
3030
- name: Checkout
31-
uses: actions/checkout@v4
31+
uses: actions/checkout@v6
3232

3333
- name: Install pnpm
34-
uses: pnpm/action-setup@v4
35-
with:
36-
version: 9
34+
uses: pnpm/action-setup@v6
3735

3836
- name: Install Node.js
39-
uses: actions/setup-node@v4
37+
uses: actions/setup-node@v6
4038
with:
41-
node-version: "22"
39+
node-version: "24"
4240
cache: "pnpm"
4341

4442
- name: Install Node dependencies
4543
run: pnpm install
4644

47-
- name: Type check
48-
run: pnpm typecheck
49-
50-
- name: Test
51-
run: pnpm test
52-
5345
- name: Build docs
5446
run: pnpm run docs
5547

5648
- name: Upload Pages artifact
57-
uses: actions/upload-pages-artifact@v3
49+
uses: actions/upload-pages-artifact@v5
5850
with:
5951
path: site
6052

@@ -67,4 +59,4 @@ jobs:
6759
steps:
6860
- name: Deploy to GitHub Pages
6961
id: deployment
70-
uses: actions/deploy-pages@v4
62+
uses: actions/deploy-pages@v5

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "@bgforge/iets",
33
"version": "0.5.0",
44
"type": "module",
5+
"packageManager": "pnpm@11.3.0",
56
"exports": {
67
".": "./src/index.ts",
78
"./bg2": "./src/bg2/index.ts"

0 commit comments

Comments
 (0)