Skip to content

Commit 4d9402a

Browse files
ci: use electron/semantic-trusted-release instead of npx (#127)
Replaces unpinned npx semantic-release with the org-standard electron/semantic-trusted-release composite action. The previous invocation fetched semantic-release@latest from the registry on every release with publish credentials in scope. The .releaserc.json already matches what secret-service-action uses (commit-analyzer, release-notes-generator, github — all bundled with semantic-release core), so no config changes needed. Also: - drops the redundant setup-node step (the composite action has its own) - adds persist-credentials: false on checkout - adds pull-requests/issues write permissions for release comments
1 parent af936f7 commit 4d9402a

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

.github/workflows/ci.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,15 @@ jobs:
4141
needs: test-typescript
4242
if: github.ref == 'refs/heads/main'
4343
permissions:
44-
contents: write
44+
contents: write # for making github release
45+
pull-requests: write # for commenting release version
46+
issues: write # for commenting release version
4547
steps:
4648
- name: Checkout
4749
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
48-
- name: Setup Node.js
49-
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
5050
with:
51-
node-version: 20
52-
- run: npx semantic-release
53-
env:
54-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
51+
persist-credentials: false
52+
- name: Run semantic release
53+
uses: electron/semantic-trusted-release@03517840010ba30fe5264f4875f4cff066b658d1 # v1.1.0
54+
with:
55+
github-token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)