Skip to content

Commit 5474772

Browse files
Merge pull request #2556 from stripe/prathmesh/merge-node-beta
Prathmesh/merge node beta
2 parents f46204e + 144316c commit 5474772

File tree

2 files changed

+11
-12
lines changed

2 files changed

+11
-12
lines changed

.github/workflows/main.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ jobs:
3333

3434
- name: Setup node
3535
uses: actions/setup-node@v2
36+
with:
37+
node-version: '22'
3638

3739
- name: Get yarn cache directory path
3840
id: yarn-cache-dir-path
@@ -119,27 +121,24 @@ jobs:
119121
runs-on: 'ubuntu-24.04'
120122
permissions:
121123
contents: read
124+
id-token: write # Required for OIDC
122125
steps:
123126
# just is called in `yarn prepack`, which is called during the `publish` operation
124127
- uses: extractions/setup-just@v2
125128
- uses: actions/checkout@v2
126-
- run: sudo apt-get install -y oathtool
129+
- uses: actions/setup-node@v4
130+
with:
131+
node-version: '24'
132+
registry-url: 'https://registry.npmjs.org'
133+
- run: npm install -g npm@11
127134
- name: Publish to NPM
128135
run: |
129136
set -euxo pipefail
130-
npm config set //registry.npmjs.org/:_authToken $NPM_AUTH_TOKEN
131-
# print the NPM user name for validation
132-
npm whoami
133137
VERSION=$(cat package.json | jq -r '.version')
134138
# use the tag correlating to this release channel
135139
NPM_TAG=$(cat package.json | jq -r '.version | if contains("beta") then "public-preview" else if contains("alpha") then "private-preview" else "latest" end end')
136140
echo "Publishing $VERSION with $NPM_TAG tag."
137-
# stop debug logging now, so we don't log the OTP
138-
set +x
139-
npm publish --otp="$(oathtool -b --totp $NPM_OTP)" --tag $NPM_TAG
140-
env:
141-
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
142-
NPM_OTP: ${{ secrets.NPM_OTP }}
141+
npm publish --tag $NPM_TAG
143142
- uses: stripe/openapi/actions/notify-release@master
144143
if: always()
145144
with:

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
],
1919
"repository": {
2020
"type": "git",
21-
"url": "git://github.com/stripe/stripe-node.git"
21+
"url": "https://github.com/stripe/stripe-node"
2222
},
2323
"bugs": "https://github.com/stripe/stripe-node/issues",
2424
"engines": {
@@ -98,4 +98,4 @@
9898
"require": "./cjs/stripe.cjs.node.js"
9999
}
100100
}
101-
}
101+
}

0 commit comments

Comments
 (0)