Skip to content

Commit b20f9e5

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

4 files changed

Lines changed: 418 additions & 402 deletions

File tree

.github/workflows/release.yaml

Lines changed: 7 additions & 7 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: |
@@ -43,10 +47,6 @@ jobs:
4347
git config user.email "bot@uphold.com"
4448
git config --global url.https://${{ secrets.RELEASE_GITHUB_TOKEN }}@github.com/.insteadOf https://github.com/
4549
46-
- name: Configure npm
47-
run: npm config set //registry.npmjs.org/:_authToken ${{ secrets.RELEASE_NPM_TOKEN }}
48-
49-
5050
- name: Generate release
5151
env:
5252
GITHUB_TOKEN: ${{ secrets.RELEASE_GITHUB_TOKEN }}

.release-it.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ module.exports = {
1717
`
1818
},
1919
npm: {
20-
publish: true
20+
publish: true,
21+
skipChecks: true
2122
}
2223
};

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"eslint": "~9.27.0",
3333
"eslint-config-uphold": "^6.5.1",
3434
"prettier": "^3.5.3",
35-
"release-it": "^19.0.3"
35+
"release-it": "^19.2.3"
3636
},
3737
"pre-commit": [
3838
"lint"

0 commit comments

Comments
 (0)