Update release workflow with OIDC permissions
Added permissions for OIDC and updated job steps.
This commit is contained in:
@@ -8,6 +8,10 @@ on:
|
|||||||
- "packages/sdk/**" # Trigger only changes in packages
|
- "packages/sdk/**" # Trigger only changes in packages
|
||||||
- ".github/workflows/release-js-package.yml"
|
- ".github/workflows/release-js-package.yml"
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
id-token: write # Required for OIDC
|
||||||
|
contents: read
|
||||||
|
|
||||||
concurrency: ${{ github.workflow }}-${{ github.ref }}
|
concurrency: ${{ github.workflow }}-${{ github.ref }}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@@ -31,13 +35,5 @@ jobs:
|
|||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: pnpm install --frozen-lockfile
|
run: pnpm install --frozen-lockfile
|
||||||
|
|
||||||
- name: Create .npmrc file
|
|
||||||
run: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
|
|
||||||
env:
|
|
||||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
||||||
|
|
||||||
- name: Publish
|
- name: Publish
|
||||||
run: pnpm publish-sdk
|
run: pnpm publish-sdk
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user