Skip to content

Commit 6ab87cb

Browse files
committed
ci: fix the release flow through Trusted Publishing
1 parent b3d1bdc commit 6ab87cb

File tree

3 files changed

+1968
-1496
lines changed

3 files changed

+1968
-1496
lines changed

.github/workflows/cd.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
- main
77
- develop
88

9+
permissions:
10+
id-token: write # Required for OIDC
11+
contents: read
12+
913
jobs:
1014
release:
1115
runs-on: ubuntu-latest
@@ -19,6 +23,8 @@ jobs:
1923
- uses: actions/setup-node@v4
2024
with:
2125
cache: "yarn"
26+
node-version: "22.14.0"
27+
registry-url: "https://registry.npmjs.org"
2228

2329
- name: Install dependencies
2430
run: yarn
@@ -29,7 +35,6 @@ jobs:
2935
- name: Release
3036
env:
3137
GITHUB_TOKEN: ${{ secrets.VENUS_TOOLS_TOKEN }}
32-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
3338
GIT_AUTHOR_NAME: Venus Tools
3439
GIT_AUTHOR_EMAIL: tools@venus.io
3540
GIT_COMMITTER_NAME: Venus Tools

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,8 @@
6666
"@nomicfoundation/hardhat-chai-matchers": "^1.0.3",
6767
"@nomicfoundation/hardhat-network-helpers": "^1.0.4",
6868
"@nomicfoundation/hardhat-verify": "^2.0.14",
69-
"@semantic-release/changelog": "^6.0.1",
69+
"@semantic-release/changelog": "^6.0.3",
7070
"@semantic-release/git": "^10.0.1",
71-
"@semantic-release/npm": "^9.0.1",
7271
"@trivago/prettier-plugin-sort-imports": "3.4.0",
7372
"@typechain/ethers-v5": "^7.2.0",
7473
"@typechain/hardhat": "^2.3.1",
@@ -99,7 +98,7 @@
9998
"husky": "^8.0.1",
10099
"prettier": "2.7.1",
101100
"prettier-plugin-solidity": "1.1.3",
102-
"semantic-release": "^19.0.3",
101+
"semantic-release": "^25.0.2",
103102
"solhint": "^3.3.7",
104103
"solidity-coverage": "^0.8.4",
105104
"solidity-docgen": "^0.6.0-beta.29",

0 commit comments

Comments
 (0)