Skip to content

Commit c647c2d

Browse files
authored
fix: migrates release to trusted publsihing (#286)
* fix: bumps node version to use trusted publishing * fix: Update package-lock.json
1 parent b515ed5 commit c647c2d

3 files changed

Lines changed: 464 additions & 9 deletions

File tree

.github/workflows/node-js.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,22 +20,22 @@ jobs:
2020
contents: write
2121
id-token: write
2222
pull-requests: write
23-
24-
strategy:
25-
matrix:
26-
node-version: [18.15.0]
2723

2824
steps:
2925
- uses: actions/checkout@v3
30-
- name: Use Node.js ${{ matrix.node-version }}
26+
- name: Use Node.js
3127
uses: actions/setup-node@v3
3228
with:
33-
node-version: ${{ matrix.node-version }}
29+
node-version-file: .nvmrc
30+
# See https://docs.npmjs.com/trusted-publishers
31+
# Find the latest version with `npm info npm@latest version`
32+
- name: Install suitable NPM version for trusted publishing
33+
run: npm install -g npm@11.12.0
3434
- run: npm ci
3535
- run: npm run test
3636
- run: npm run build
3737
- name: Semantic Release
38-
uses: cycjimmy/semantic-release-action@8e58d20d0f6c8773181f43eb74d6a05e3099571d
38+
uses: cycjimmy/semantic-release-action@b12c8f6015dc215fe37bc154d4ad456dd3833c90
3939
with:
4040
branches: |
4141
[
@@ -47,4 +47,3 @@ jobs:
4747
]
4848
env:
4949
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
50-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
18.15.0
1+
24.14.1

0 commit comments

Comments
 (0)