Skip to content

Commit 0979dfd

Browse files
authored
chore: bump actions and use new publish workflow (#60)
1 parent 52bc184 commit 0979dfd

File tree

3 files changed

+21
-13
lines changed

3 files changed

+21
-13
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Check out repository
15-
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
15+
uses: actions/checkout@v5.0.0
1616

1717
- name: Set up Node.js
18-
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
18+
uses: actions/setup-node@v6.0.0
1919
with:
20-
node-version: 20
20+
node-version: 24
2121

2222
- name: Install dependencies and build
2323
run: npm ci
@@ -32,14 +32,14 @@ jobs:
3232
3333
- name: Upload coverage report
3434
if: "always() && hashFiles('coverage/**') != ''"
35-
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
35+
uses: actions/upload-artifact@v5.0.0
3636
with:
3737
name: coverage-report
3838
path: coverage
3939

4040
- name: Post or update PR comment with coverage summary
4141
if: always()
42-
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
42+
uses: actions/github-script@v8.0.0
4343
with:
4444
script: |
4545
const fs = require('fs');

.github/workflows/publish.yml

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,21 @@ on:
99
tags:
1010
- 'v\\d.*'
1111

12+
permissions:
13+
id-token: write # Required for OIDC
14+
contents: read
15+
1216
jobs:
1317
build-and-test:
1418
runs-on: ubuntu-latest
1519
steps:
1620
- name: Check out repository
17-
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
21+
uses: actions/checkout@v5.0.0
1822

1923
- name: Set up Node.js
20-
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
24+
uses: actions/setup-node@v6.0.0
2125
with:
22-
node-version: 20
26+
node-version: 24
2327

2428
- name: Install dependencies and build
2529
run: npm ci
@@ -35,12 +39,15 @@ jobs:
3539
runs-on: ubuntu-latest
3640
environment: publish
3741
steps:
38-
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
39-
- uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
42+
- uses: actions/checkout@v5.0.0
43+
- uses: actions/setup-node@v6.0.0
4044
with:
41-
node-version: 20
45+
node-version: 24
4246
registry-url: https://registry.npmjs.org/
47+
48+
# Ensure npm 11.5.1 or later is installed
49+
- name: Update npm
50+
run: npm install -g npm@latest
51+
4352
- run: npm ci
4453
- run: npm publish --verbose
45-
env:
46-
NODE_AUTH_TOKEN: ${{secrets.NPM_CCIP_TOOLS_TS}}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"description": "CLI and library to interact with CCIP",
55
"author": "Chainlink devs",
66
"license": "MIT",
7+
"repository": "git://github.com/smartcontractkit/ccip-tools-ts.git",
78
"type": "module",
89
"main": "dist/lib/index.js",
910
"module": "dist/lib/index.js",

0 commit comments

Comments
 (0)