Skip to content

Commit e4b3553

Browse files
authored
Merge pull request #736 from aws/ezhang6811-patch-1
set up trusted publishing for npm packages
2 parents 4d264a5 + c621cf3 commit e4b3553

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Release X-Ray Node SDK to Github and NPM
22
permissions:
33
contents: write
4+
id-token: write
45
on:
56
workflow_dispatch:
67
inputs:
@@ -21,10 +22,10 @@ jobs:
2122
- name: Setup Node
2223
uses: actions/setup-node@v1
2324
with:
24-
node-version: '16.x'
25+
node-version: '20'
2526
registry-url: 'https://registry.npmjs.org'
2627

27-
- run: npm install -g npm@8.19.4
28+
- run: npm install -g npm@11.7.0
2829

2930
- name: Cache NPM modules
3031
uses: actions/cache@v3
@@ -53,8 +54,6 @@ jobs:
5354

5455
- name: Publish package to npm
5556
run: npx lerna publish from-package --yes --exact --no-verify-access
56-
env:
57-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
5857

5958
- name: Create Release
6059
id: create_release

0 commit comments

Comments
 (0)