Skip to content

Commit 93bc4db

Browse files
authored
chore: update npm to latest version and clean up release.yml, set up trusted publishers (#34)
1 parent 2f77d50 commit 93bc4db

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@nylas/connect": patch
3+
---
4+
5+
Update release workflow to use npm trusted publishing with OIDC authentication
6+

.github/workflows/release.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ jobs:
3737
node-version: ${{ env.NODE_VERSION }}
3838
registry-url: "https://registry.npmjs.org"
3939

40+
- name: Update npm
41+
run: npm install -g npm@latest
42+
4043
- name: Setup pnpm
4144
uses: pnpm/action-setup@v4
4245
with:
@@ -84,6 +87,4 @@ jobs:
8487
createGithubReleases: true
8588
env:
8689
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
87-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
88-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} # do not remove this line (https://github.com/changesets/action/issues/98)
89-
PM_CONFIG_PROVENANCE: true
90+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} # Only needed for installing private dependencies

0 commit comments

Comments
 (0)