Skip to content

Commit d96ba04

Browse files
authored
CICD-532 Use trusted publishing for upgrade_client_lib instead of token (#3091)
1 parent 9ec39a8 commit d96ba04

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

.github/workflows/clientlibs-js-publish.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ on:
1111
description: 'Branch or tag ref to publish'
1212
required: true
1313
default: 'main'
14+
15+
permissions:
16+
id-token: write
17+
contents: read
18+
1419
jobs:
1520
clientlibs-js-publish:
1621
name: UpGrade Client Libs JS Publish
@@ -21,15 +26,13 @@ jobs:
2126
run: |
2227
echo "::set-output name=ref::${{ inputs.ref || github.event.inputs.ref }}"
2328
- name: Git Checkout
24-
uses: actions/checkout@v3
29+
uses: actions/checkout@v6
2530
with:
2631
ref: ${{ steps.set-vars.outputs.ref }}
2732
- name: Build Types Package
2833
uses: ./.github/actions/generic-npm-build
2934
with:
3035
working_directory: clientlibs/js
3136
- name: Publish Client Libs js Package
32-
uses: JS-DevTools/npm-publish@v1
33-
with:
34-
token: ${{ secrets.NPM_TOKEN }}
35-
package: clientlibs/js/package.json
37+
run: npm publish
38+
working-directory: clientlibs/js/package.json

0 commit comments

Comments
 (0)