Skip to content

Commit ab72f27

Browse files
authored
Update publish to use NPM OIDC (#3112)
* Add RetryCount to AttendeePresenceReceived event * Update publish workflow to use NPM OIDC
1 parent 076ee8e commit ab72f27

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

.github/workflows/publish.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ on:
55
types: [published]
66

77
permissions:
8-
id-token: write # This is required for requesting the JWT
8+
id-token: write # Required for OIDC
9+
contents: read
910

1011
jobs:
1112
publish:
@@ -16,10 +17,13 @@ jobs:
1617
with:
1718
ref: ${{ github.event.release.tag_name }}
1819
- name: Setup Node environment
19-
uses: actions/setup-node@v1
20+
uses: actions/setup-node@v4
2021
with:
21-
node-version: 16
22-
registry-url: https://registry.npmjs.org/
22+
node-version: '20'
23+
registry-url: 'https://registry.npmjs.org'
24+
# Ensure npm 11.5.1 or later is installed
25+
- name: Update npm
26+
run: npm install -g npm@latest
2327
- name: NPM Install
2428
run: npm install
2529
- name: NPM run build
@@ -32,8 +36,6 @@ jobs:
3236
echo "npm_tag=$npm_publish_tag" >> $GITHUB_OUTPUT
3337
- name: Publish to NPM with tag
3438
run: npm publish --tag ${{ steps.npm_tag.outputs.npm_tag }}
35-
env:
36-
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
3739
deploy_chime_prod_demo:
3840
needs: publish
3941
name: Deploy Meeting Demos with the latest NPM release

0 commit comments

Comments
 (0)