Skip to content

Commit eae09d1

Browse files
authored
ci(*): switch to trusted publishing (#483)
This pull request makes a small update to the npm publishing workflow. The most notable change is the addition of a step to update npm to the latest version before installing dependencies and publishing the package. Workflow improvements: * Added a step to update npm to the latest version using `npm install -g npm@latest` before running `npm ci` and publishing. (.github/workflows/publish.yml)
1 parent b515af0 commit eae09d1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,11 @@ jobs:
2828
path: ~/.npm
2929
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
3030

31+
- name: Update npm
32+
run: npm install -g npm@latest
33+
3134
- name: Set up node_modules
3235
run: npm ci
3336

3437
- name: Publish
3538
run: npm run publish-package
36-
env:
37-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)