Skip to content

Commit bb024ca

Browse files
authored
chore: update GitHub Actions to latest versions and bump minor dependencies (#132)
## Summary - Update GitHub Actions to latest versions (`actions/checkout@v6`, `actions/create-github-app-token@v3`, `ncipollo/release-action@v1.21.0`) - Move release notes generation before npm publish in release workflow - Add `fetch-depth: 0` and `fetch-tags: true` to release checkout for pre-release changelog generation - Simplify publish-docs ref to use `github.ref_name` directly - Bump minor dependencies: `@biomejs/biome`, `@tanstack/vite-config`, `memfs`, `vite`
1 parent de206e1 commit bb024ca

File tree

8 files changed

+241
-254
lines changed

8 files changed

+241
-254
lines changed

.github/workflows/audit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout Code
13-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
13+
uses: actions/checkout@v6
1414

1515
- name: Setup PNPM
1616
uses: dfinity/ci-tools/actions/setup-pnpm@main

.github/workflows/codestyle.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- name: Checkout Code
17-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
17+
uses: actions/checkout@v6
1818

1919
- name: Setup PNPM
2020
uses: dfinity/ci-tools/actions/setup-pnpm@main

.github/workflows/create-release-pr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ jobs:
2222
contents: write
2323
steps:
2424
- name: Create GitHub App Token
25-
uses: actions/create-github-app-token@67018539274d69449ef7c02e8e71183d1719ab42 # v2.1.4
25+
uses: actions/create-github-app-token@v3
2626
id: generate_token
2727
with:
2828
app-id: ${{ vars.PR_AUTOMATION_BOT_PUBLIC_APP_ID }}
2929
private-key: ${{ secrets.PR_AUTOMATION_BOT_PUBLIC_PRIVATE_KEY }}
3030

3131
- name: Checkout Code
32-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
32+
uses: actions/checkout@v6
3333
with:
3434
fetch-depth: 0
3535

.github/workflows/publish-docs.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
environment: release
2525
steps:
2626
- name: Create GitHub App Token
27-
uses: actions/create-github-app-token@67018539274d69449ef7c02e8e71183d1719ab42 # v2.1.4
27+
uses: actions/create-github-app-token@v3
2828
id: generate_token
2929
with:
3030
app-id: ${{ vars.PR_AUTOMATION_BOT_PUBLIC_APP_ID }}
@@ -33,7 +33,7 @@ jobs:
3333
repositories: icp-js-sdk-docs
3434

3535
- name: Checkout source at ref
36-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
36+
uses: actions/checkout@v6
3737
with:
3838
ref: ${{ inputs.ref }}
3939

@@ -74,7 +74,7 @@ jobs:
7474
run: pnpm build
7575

7676
- name: Checkout icp-pages branch
77-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
77+
uses: actions/checkout@v6
7878
with:
7979
ref: icp-pages
8080
path: icp-pages

.github/workflows/release.yml

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ jobs:
1616
runs-on: ubuntu-latest
1717
outputs:
1818
is_beta: ${{ steps.is_beta.outputs.is_beta_tag }}
19-
major_minor_patch_version_tag: ${{ steps.ver.outputs.major_minor_patch_version_tag }}
2019
environment:
2120
name: release
2221
url: https://www.npmjs.com/package/@icp-sdk/bindgen
@@ -25,7 +24,10 @@ jobs:
2524
id-token: write
2625
steps:
2726
- name: Checkout Code
28-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
27+
uses: actions/checkout@v6
28+
with:
29+
fetch-depth: 0
30+
fetch-tags: true
2931

3032
- name: Setup Python
3133
uses: dfinity/ci-tools/actions/setup-python@main
@@ -43,17 +45,12 @@ jobs:
4345
id: is_beta
4446
uses: dfinity/ci-tools/actions/is-beta-tag@main
4547

46-
- uses: dfinity/ci-tools/actions/extract-version@main
47-
id: extract-version
48-
49-
- name: Prepare version
50-
id: ver
51-
run: |
52-
echo "major_minor_patch_version_tag=${{ steps.extract-version.outputs.major }}.${{ steps.extract-version.outputs.minor }}.${{ steps.extract-version.outputs.patch }}" >> $GITHUB_OUTPUT
53-
5448
- name: Build NPM package
5549
run: pnpm build
5650

51+
- name: Generate release notes
52+
uses: dfinity/ci-tools/actions/generate-release-notes@main
53+
5754
- name: Publish to npm
5855
env:
5956
NPM_CONFIG_PROVENANCE: 'true'
@@ -66,11 +63,8 @@ jobs:
6663
fi
6764
$release_cmd
6865
69-
- name: Generate release notes
70-
uses: dfinity/ci-tools/actions/generate-release-notes@main
71-
7266
- name: Create Github release
73-
uses: ncipollo/release-action@b7eabc95ff50cbeeedec83973935c8f306dfcd0b # v1.20.0
67+
uses: ncipollo/release-action@339a81892b84b4eeb0f6e744e4574d79d0d9b8dd # v1.21.0
7468
with:
7569
artifacts: 'icp-sdk-bindgen-${{ github.ref_name }}.tgz'
7670
bodyFile: 'RELEASE_NOTES.md'
@@ -84,5 +78,5 @@ jobs:
8478
if: ${{ needs.release.outputs.is_beta == 'false' }}
8579
uses: ./.github/workflows/publish-docs.yml
8680
with:
87-
ref: ${{ needs.release.outputs.major_minor_patch_version_tag }}
81+
ref: ${{ github.ref_name }}
8882
secrets: inherit

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- name: Checkout Code
17-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
17+
uses: actions/checkout@v6
1818

1919
- name: Setup PNPM
2020
uses: dfinity/ci-tools/actions/setup-pnpm@main

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,14 @@
6464
},
6565
"packageManager": "pnpm@10.13.1",
6666
"devDependencies": {
67-
"@biomejs/biome": "2.4.7",
68-
"@tanstack/vite-config": "^0.5.1",
67+
"@biomejs/biome": "2.4.8",
68+
"@tanstack/vite-config": "^0.5.2",
6969
"@types/node": "^24.12.0",
70-
"memfs": "^4.56.11",
70+
"memfs": "^4.57.1",
7171
"publint": "^0.3.18",
7272
"tinyglobby": "^0.2.15",
7373
"typescript": "^5.9.3",
74-
"vite": "^8.0.0",
74+
"vite": "^8.0.2",
7575
"vitest": "4.1.0",
7676
"wasm-pack": "^0.14.0"
7777
},

0 commit comments

Comments
 (0)