Skip to content

Commit 9b1c786

Browse files
committed
Merge remote-tracking branch 'makenew/public' into trusted-pub
2 parents cd154f1 + bd27d6a commit 9b1c786

File tree

16 files changed

+54
-57
lines changed

16 files changed

+54
-57
lines changed

.devcontainer/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG VARIANT="22"
1+
ARG VARIANT="24"
22

33
FROM mcr.microsoft.com/vscode/devcontainers/javascript-node:${VARIANT}
44

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"build": {
44
"dockerfile": "Dockerfile",
55
"args": {
6-
"VARIANT": "22"
6+
"VARIANT": "24"
77
}
88
},
99
"extensions": [

.github/actions/setup/action.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ inputs:
66
node_version:
77
description: The Node.js version.
88
required: false
9-
default: '22'
9+
default: '24'
1010
registry_url:
1111
description: The Node.js package registry URL.
1212
required: false
@@ -20,14 +20,13 @@ runs:
2020
using: composite
2121
steps:
2222
- name: Setup Node.js
23-
uses: actions/setup-node@v4
23+
uses: actions/setup-node@v6
2424
if: inputs.install_dependencies == 'true'
2525
with:
26-
cache: npm
2726
node-version: ${{ inputs.node_version }}
2827
registry-url: ${{ inputs.registry_url }}
2928
- name: Setup Node.js without cache
30-
uses: actions/setup-node@v4
29+
uses: actions/setup-node@v6
3130
if: inputs.install_dependencies == 'false'
3231
with:
3332
node-version: ${{ inputs.node_version }}

.github/workflows/_build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
description: The Node.js version.
99
type: string
1010
required: false
11-
default: '22'
11+
default: '24'
1212
outputs:
1313
artifact_name:
1414
description: The artifact name.
@@ -21,7 +21,7 @@ jobs:
2121
timeout-minutes: 30
2222
steps:
2323
- name: Checkout
24-
uses: actions/checkout@v4
24+
uses: actions/checkout@v5
2525
- name: Setup
2626
uses: ./.github/actions/setup
2727
with:
@@ -31,7 +31,7 @@ jobs:
3131
- name: Package
3232
run: npm pack
3333
- name: Upload artifact
34-
uses: actions/upload-artifact@v4
34+
uses: actions/upload-artifact@v6
3535
with:
3636
name: build-${{ github.sha }}
3737
if-no-files-found: error

.github/workflows/_publish.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ on:
1515
secrets:
1616
registry_token:
1717
description: The package registry token.
18-
required: true
18+
required: false
1919

2020
jobs:
2121
publish:
@@ -24,21 +24,21 @@ jobs:
2424
timeout-minutes: 30
2525
steps:
2626
- name: Checkout
27-
uses: actions/checkout@v4
27+
uses: actions/checkout@v5
2828
- name: Setup
2929
uses: ./.github/actions/setup
3030
with:
3131
install_dependencies: 'false'
3232
- name: Download artifact
33-
uses: actions/download-artifact@v4
33+
uses: actions/download-artifact@v6
3434
with:
3535
name: ${{ inputs.artifact_name }}
3636
path: .
3737
- name: Get meta
3838
id: meta
3939
run: echo "tgz=$(ls *.tgz | head -n1)" >> $GITHUB_OUTPUT
4040
- name: Publish
41-
uses: JS-DevTools/npm-publish@v3
41+
uses: JS-DevTools/npm-publish@v4
4242
with:
4343
access: public
4444
token: ${{ secrets.registry_token }}

.github/workflows/check.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ jobs:
2020
os:
2121
- ubuntu-latest
2222
node:
23-
- '20'
2423
- '22'
24+
- '24'
2525
include:
2626
- os: ubuntu-latest
2727
os_name: Linux
2828
steps:
2929
- name: Checkout
30-
uses: actions/checkout@v4
30+
uses: actions/checkout@v5
3131
- name: Setup
3232
uses: ./.github/actions/setup
3333
with:
@@ -42,11 +42,11 @@ jobs:
4242
fail-fast: false
4343
matrix:
4444
node:
45-
- '20'
4645
- '22'
46+
- '24'
4747
steps:
4848
- name: Checkout
49-
uses: actions/checkout@v4
49+
uses: actions/checkout@v5
5050
- name: Setup
5151
uses: ./.github/actions/setup
5252
with:
@@ -67,8 +67,8 @@ jobs:
6767
os:
6868
- ubuntu-latest
6969
node:
70-
- '20'
7170
- '22'
71+
- '24'
7272
include:
7373
- os: ubuntu-latest
7474
os_name: Linux
@@ -78,7 +78,7 @@ jobs:
7878
with:
7979
node-version: ${{ matrix.node }}
8080
- name: Download artifact
81-
uses: actions/download-artifact@v4
81+
uses: actions/download-artifact@v6
8282
with:
8383
name: ${{ needs.build.outputs.artifact_name }}
8484
path: .
@@ -113,11 +113,11 @@ jobs:
113113
fail-fast: false
114114
matrix:
115115
node:
116-
- '20'
117116
- '22'
117+
- '24'
118118
steps:
119119
- name: Checkout
120-
uses: actions/checkout@v4
120+
uses: actions/checkout@v5
121121
- name: Setup
122122
uses: ./.github/actions/setup
123123
with:

.github/workflows/format.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
timeout-minutes: 30
1515
steps:
1616
- name: Checkout
17-
uses: actions/checkout@v4
17+
uses: actions/checkout@v5
1818
with:
1919
ref: ${{ github.head_ref }}
2020
token: ${{ secrets.GH_TOKEN }}
@@ -32,7 +32,7 @@ jobs:
3232
- name: Format
3333
run: npm run format
3434
- name: Commit
35-
uses: stefanzweifel/git-auto-commit-action@v6
35+
uses: stefanzweifel/git-auto-commit-action@v7
3636
if: always()
3737
with:
3838
commit_message: 'ci: Format code'

.github/workflows/generate.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
timeout-minutes: 30
1515
steps:
1616
- name: Checkout
17-
uses: actions/checkout@v4
17+
uses: actions/checkout@v5
1818
with:
1919
ref: ${{ github.head_ref }}
2020
token: ${{ secrets.GH_TOKEN }}
@@ -36,7 +36,7 @@ jobs:
3636
- name: Generate code
3737
run: npm run generate
3838
- name: Commit
39-
uses: stefanzweifel/git-auto-commit-action@v6
39+
uses: stefanzweifel/git-auto-commit-action@v7
4040
with:
4141
commit_message: 'ci: Generate code'
4242
commit_user_name: ${{ secrets.GIT_USER_NAME }}

.github/workflows/publish.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ jobs:
1919
needs: build
2020
steps:
2121
- name: Checkout
22-
uses: actions/checkout@v4
22+
uses: actions/checkout@v5
2323
with:
2424
fetch-depth: 0
2525
- name: Download artifact
26-
uses: actions/download-artifact@v4
26+
uses: actions/download-artifact@v6
2727
with:
2828
name: ${{ needs.build.outputs.artifact_name }}
2929
path: .
@@ -47,8 +47,9 @@ jobs:
4747
name: npm
4848
uses: ./.github/workflows/_publish.yml
4949
needs: build
50+
permissions:
51+
contents: read
52+
id-token: write
5053
with:
5154
artifact_name: ${{ needs.build.outputs.artifact_name }}
5255
registry_url: https://registry.npmjs.org
53-
secrets:
54-
registry_token: ${{ secrets.NPM_TOKEN }}

.github/workflows/semantic-release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ jobs:
2727
new_release_version: ${{ steps.release.outputs.new_release_version }}
2828
steps:
2929
- name: Checkout
30-
uses: actions/checkout@v4
30+
uses: actions/checkout@v5
3131
with:
3232
fetch-depth: 0
3333
- name: Semantic release
3434
id: release
35-
uses: cycjimmy/semantic-release-action@v4
35+
uses: cycjimmy/semantic-release-action@v6
3636
with:
3737
dry_run: true
3838
release:
@@ -43,7 +43,7 @@ jobs:
4343
if: needs.semantic.outputs.new_release_published == 'true' && needs.semantic.outputs.new_release_version != '1.0.0'
4444
steps:
4545
- name: Checkout
46-
uses: actions/checkout@v4
46+
uses: actions/checkout@v5
4747
with:
4848
fetch-depth: 1
4949
- name: Release version ${{ needs.semantic.outputs.new_release_version }} on ${{ github.ref_name }}

0 commit comments

Comments
 (0)