Skip to content

Commit 1ceda99

Browse files
ci: Bump actions, fix release script (#212)
* ci: Update action & Node versions * fix: correct Node test script * ci: Fix git config for relese Co-authored-by: Jovi De Croock <decroockjovi@gmail.com> --------- Co-authored-by: Jovi De Croock <decroockjovi@gmail.com>
1 parent 720698b commit 1ceda99

4 files changed

Lines changed: 16 additions & 27 deletions

File tree

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ jobs:
1111
runs-on: ubuntu-latest
1212
timeout-minutes: 5
1313
steps:
14-
- uses: actions/checkout@v3
15-
- uses: actions/setup-node@v3
14+
- uses: actions/checkout@v6
15+
- uses: actions/setup-node@v7
1616
with:
1717
node-version-file: "package.json"
1818
cache: "npm"

.github/workflows/release.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ jobs:
2020
runs-on: ubuntu-latest
2121
steps:
2222
- name: Checkout
23-
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
23+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
2424
with:
2525
persist-credentials: false
2626

2727
- name: Install Node.js
28-
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
28+
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
2929
with:
3030
package-manager-cache: false
3131
node-version-file: package.json
@@ -61,12 +61,12 @@ jobs:
6161
runs-on: ubuntu-latest
6262
steps:
6363
- name: Checkout
64-
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
64+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
6565
with:
6666
persist-credentials: false
6767

6868
- name: Install Node.js
69-
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
69+
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
7070
with:
7171
package-manager-cache: false
7272
node-version: 22
@@ -81,6 +81,14 @@ jobs:
8181
- name: Build package
8282
run: npm run build
8383

84+
# changesets/action skips `git config user.*` in github-api commit mode,
85+
# and checkout uses persist-credentials: false, so no identity is set.
86+
# stage-packages.mjs creates annotated tags (`git tag -m`), which require one.
87+
- name: Configure git identity
88+
run: |
89+
git config user.name "github-actions[bot]"
90+
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
91+
8492
- name: Publish packages
8593
uses: changesets/action@e0145edc7d9d8679003495b11f87bd8ef63c0cba # v1.5.3
8694
with:

package-lock.json

Lines changed: 0 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"dev:build": "vite build demo",
1919
"dev:preview": "vite preview demo",
2020
"build": "premove dist && tsc && tsc -p tsconfig.cjs.json && node tools/postbuild.mjs",
21-
"test": "premove demo/node_modules && node --test test",
21+
"test": "premove demo/node_modules && node --test",
2222
"version": "changeset version && npm install --package-lock-only --ignore-scripts",
2323
"prepublishOnly": "npm run build"
2424
},
@@ -90,6 +90,6 @@
9090
"trailingComma": "all"
9191
},
9292
"volta": {
93-
"node": "20.19.6"
93+
"node": "24.18.0"
9494
}
9595
}

0 commit comments

Comments
 (0)