Skip to content

Commit ba1cbc3

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

File tree

3 files changed

+1963
-1541
lines changed

3 files changed

+1963
-1541
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: "20"
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: [email protected]
3540
GIT_COMMITTER_NAME: Venus Tools

package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,6 @@
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",
70-
"@semantic-release/git": "^10.0.1",
71-
"@semantic-release/npm": "^9.0.1",
7269
"@trivago/prettier-plugin-sort-imports": "3.4.0",
7370
"@typechain/ethers-v5": "^7.2.0",
7471
"@typechain/hardhat": "^2.3.1",
@@ -99,7 +96,7 @@
9996
"husky": "^8.0.1",
10097
"prettier": "2.7.1",
10198
"prettier-plugin-solidity": "1.1.3",
102-
"semantic-release": "^19.0.3",
99+
"semantic-release": "^25.0.2",
103100
"solhint": "^3.3.7",
104101
"solidity-coverage": "^0.8.4",
105102
"solidity-docgen": "^0.6.0-beta.29",

0 commit comments

Comments
 (0)