Skip to content

Commit 28fdad5

Browse files
authored
ci: publish using electron/semantic-trusted-release action (#229)
* ci: publish using electron/semantic-trusted-release action * chore: pin SHA of release action
1 parent 3490e93 commit 28fdad5

File tree

4 files changed

+15
-4908
lines changed

4 files changed

+15
-4908
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,9 @@ jobs:
2929
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
3030
with:
3131
node-version: '24.x'
32-
- name: Update npm to version that supports trusted publishing
33-
run: npm install -g npm@^11.5.1
3432
- name: Install
3533
run: yarn install --immutable
36-
- name: Fetch NPM Token
37-
uses: electron/npm-trusted-auth-action@418d14975a3ff06683cc4580a4eba437f0f017f1 # v1.0.0
38-
with:
39-
package-name: node-abi
4034
- name: Run semantic release
41-
run: yarn semantic-release
42-
env:
43-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35+
uses: electron/semantic-trusted-release@61ce691b158cef415dd4e4e5b0bef65b29cb5d24 # v1.0.0
36+
with:
37+
github-token: ${{ secrets.GITHUB_TOKEN }}

.releaserc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"plugins": [
33
"@semantic-release/commit-analyzer",
44
"@semantic-release/release-notes-generator",
5-
"./node_modules/@semantic-release/npm",
5+
"@semantic-release/npm",
66
"@semantic-release/github"
77
],
88
"branches": [ "main" ]

package.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,6 @@
3030
"url": "https://github.com/electron/node-abi/issues"
3131
},
3232
"homepage": "https://github.com/electron/node-abi#readme",
33-
"devDependencies": {
34-
"@semantic-release/npm": "13.0.0-alpha.15",
35-
"semantic-release": "^24.2.7"
36-
},
3733
"dependencies": {
3834
"semver": "^7.6.3"
3935
},

0 commit comments

Comments
 (0)