Skip to content

Commit 1eeb609

Browse files
ci: Use Trusted publishing (#15)
* feat: Support trusted publishing * chore: add missing shell to setup tools action * chore: Update semantic release to support trusted publishing * chore: update versions of semantic-release Also requires higher version of node. * fix: Use node 24 for CI
1 parent ea8200c commit 1eeb609

File tree

4 files changed

+1483
-1705
lines changed

4 files changed

+1483
-1705
lines changed

.github/actions/setup-tools/action.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ runs:
77
- name: Install Node.js
88
uses: actions/setup-node@v4
99
with:
10-
node-version: 23
10+
node-version: 24 # semantic-release requires at least this version, or 22 LTS
11+
- name: Update npm # To ensure npm 11.5.1 or later is installed for Trusted publishing
12+
shell: bash
13+
run: npm install -g npm@latest
1114
- name: Install dependencies
1215
working-directory: ./packages/capacitor-plugin
1316
shell: bash

.github/workflows/release_plugin.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ permissions:
1111
contents: write
1212
issues: write
1313
deployments: write
14-
id-token: write # to enable use of OIDC for npm provenance
14+
id-token: write # to enable use of OIDC for npm provenance and trusted publishing
1515

1616
jobs:
1717
setup:
@@ -47,5 +47,4 @@ jobs:
4747
env:
4848
GITHUB_TOKEN: ${{ secrets.CAP_GH_RELEASE_TOKEN }}
4949
GH_TOKEN: ${{ secrets.CAP_GH_RELEASE_TOKEN }}
50-
NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
5150
run: npx semantic-release

0 commit comments

Comments
 (0)