Update release workflow with OIDC permissions
Added permissions for OIDC and cleared auth token.
This commit is contained in:
parent
e083a2fd70
commit
3eb4a9f6ae
1 changed files with 9 additions and 2 deletions
11
.github/workflows/release.yml
vendored
11
.github/workflows/release.yml
vendored
|
|
@ -5,19 +5,26 @@ on:
|
|||
branches:
|
||||
- release
|
||||
|
||||
|
||||
permissions:
|
||||
id-token: write # Required for OIDC
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout branch
|
||||
uses: actions/checkout@v6
|
||||
# - name: Setup pnpm
|
||||
# uses: pnpm/action-setup@v4
|
||||
- name: Setup pnpm
|
||||
uses: pnpm/action-setup@v4
|
||||
- name: Setup node.js 20
|
||||
uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version: 24
|
||||
cache: 'npm'
|
||||
- name: Clear auth token for OIDC
|
||||
run: echo "NODE_AUTH_TOKEN=" >> $GITHUB_ENV
|
||||
- name: Install Dependencies
|
||||
run: npm i --frozen-lockfile
|
||||
- name: release
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue