Skip to content

Commit 7be60fe

Browse files
authored
Merge pull request #288 from lob/chore/SYNC-222
chore/SYNC-222/npm publishing upgrade
2 parents f16b330 + 6dc22fd commit 7be60fe

File tree

2 files changed

+15
-8
lines changed

2 files changed

+15
-8
lines changed

.github/workflows/npm_publish.yml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,31 @@ on:
77
release:
88
types: [published]
99

10+
permissions:
11+
id-token: write # Required for OIDC
12+
contents: write
13+
1014
jobs:
1115
publish:
1216
runs-on: ubuntu-latest
1317

1418
# Steps represent a sequence of tasks that will be executed as part of the job
1519
steps:
1620
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
17-
- uses: actions/checkout@v4
21+
- uses: actions/checkout@v5
1822

1923
# use node setup library (more info here https://github.com/actions/setup-node)
2024
- uses: actions/setup-node@v4
2125
with:
2226
node-version: 20
2327

24-
- name: Npm Install
25-
run: npm install
28+
- name: Install NPM 11.5.1
29+
run: npm install -g [email protected]
30+
31+
- name: Npm CI
32+
run: npm ci
2633

2734
# publishes to NPM using third party tool (more info here https://github.com/JS-DevTools/npm-publish)
28-
- uses: JS-DevTools/npm-publish@v3
29-
with:
30-
token: ${{ secrets.NPM_TOKEN }}
31-
access: public
35+
- name: Publish the package to NPM
36+
id: publish
37+
uses: JS-DevTools/npm-publish@v4

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
},
2424
"bugs:": "https://github.com/lob/lob-typescript-sdk/issues",
2525
"engines": {
26-
"node": ">= 20"
26+
"node": ">= 20",
27+
"npm": ">= 11.5.1"
2728
},
2829
"license": "MIT",
2930
"files": [

0 commit comments

Comments
 (0)