Skip to content

Commit fa20866

Browse files
risantosfranciscocardoso
authored andcommitted
Update release workflow to use trusted publishing
- Update `release-it@19.2.3`
1 parent e78e1d7 commit fa20866

4 files changed

Lines changed: 422 additions & 405 deletions

File tree

.github/workflows/release.yaml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,21 @@ jobs:
2020
concurrency:
2121
group: release-${{ github.repository }}-${{ github.ref_name }}
2222
cancel-in-progress: false
23+
permissions:
24+
contents: write
25+
id-token: write
2326

2427
steps:
2528
- name: Checkout code
26-
uses: actions/checkout@v4
29+
uses: actions/checkout@v6
2730
with:
2831
persist-credentials: false
2932

3033
- name: Setup Node.js version
31-
uses: actions/setup-node@v4
34+
uses: actions/setup-node@v6
3235
with:
33-
node-version: 22
36+
node-version: 24
37+
registry-url: https://registry.npmjs.org/
3438

3539
- name: Install dependencies
3640
run: yarn install --frozen-lockfile
@@ -41,9 +45,6 @@ jobs:
4145
git config user.email "bot@uphold.com"
4246
git config --global url.https://${{ secrets.RELEASE_GITHUB_TOKEN }}@github.com/.insteadOf https://github.com/
4347
44-
- name: Configure npm
45-
run: npm config set //registry.npmjs.org/:_authToken ${{ secrets.RELEASE_NPM_TOKEN }}
46-
4748
- name: Generate release
4849
env:
4950
GITHUB_TOKEN: ${{ secrets.RELEASE_GITHUB_TOKEN }}

.release-it.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ module.exports = {
1818
]
1919
},
2020
npm: {
21-
publish: true
21+
publish: true,
22+
skipChecks: true
2223
}
2324
};

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,13 @@
6464
"isoc": "0.0.1",
6565
"moment": "^2.30.1",
6666
"prettier": "^3.5.3",
67-
"release-it": "^19.0.3",
67+
"release-it": "^19.2.3",
6868
"tin-validator": "^1.1.0",
6969
"uk-modulus-checking": "0.0.3",
7070
"urijs": "^1.17.1",
7171
"validate-rfc": "^2.0.3",
72-
"validator.js": "^2.0.0",
73-
"validator": "^13.15.15"
72+
"validator": "^13.15.15",
73+
"validator.js": "^2.0.0"
7474
},
7575
"peerDependencies": {
7676
"abavalidator": "^2.0.0",
@@ -86,8 +86,8 @@
8686
"uk-modulus-checking": "^0.0.2",
8787
"urijs": "^1.0.0",
8888
"validate-rfc": "^2.0.3",
89-
"validator.js": "^2.0.0",
90-
"validator": ">=3 <14"
89+
"validator": ">=3 <14",
90+
"validator.js": "^2.0.0"
9191
},
9292
"peerDependenciesMeta": {
9393
"abavalidator": {

0 commit comments

Comments
 (0)