Skip to content

Commit b4b4bd0

Browse files
committed
release_token
1 parent af1cf76 commit b4b4bd0

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/prepare.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: Prepare Version
22

33
on:
44
workflow_call:
5+
secrets:
6+
RELEASE_TOKEN:
7+
required: true
58
inputs:
69
default_version:
710
description: 'Default version if no input is provided'
@@ -64,7 +67,8 @@ jobs:
6467
uses: actions/checkout@v6
6568
with:
6669
ref: ${{ inputs.ref || github.ref }}
67-
token: ${{ secrets.GITHUB_TOKEN }}
70+
# token: ${{ secrets.GITHUB_TOKEN }}
71+
token: ${{ secrets.RELEASE_TOKEN }}
6872
fetch-depth: 0
6973

7074
- name: Setup Node.js
@@ -80,8 +84,10 @@ jobs:
8084
extra_plugins: |
8185
@semantic-release/changelog
8286
@semantic-release/git
87+
# env:
88+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8389
env:
84-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
90+
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
8591

8692
- name: Get version info
8793
id: version

0 commit comments

Comments
 (0)