Skip to content

Commit 0a0f6a3

Browse files
authored
fix(build): fixed semantic release permission issue (#76)
Signed-off-by: Ujjwal Kumar <Ujjwal.Kumar1@ibm.com>
1 parent 9c42229 commit 0a0f6a3

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,15 @@ jobs:
3838
create-release:
3939
needs: build
4040
name: semantic-release
41-
if: "github.ref_name == 'master' && github.event_name != 'pull_request'"
41+
if: github.ref_name == 'master' && github.event_name != 'pull_request'
4242
runs-on: ubuntu-latest
4343

4444
steps:
4545
- name: Checkout repository
4646
uses: actions/checkout@v4
4747
with:
48-
persist-credentials: false
48+
fetch-depth: 0
49+
token: ${{ secrets.GH_TOKEN }}
4950

5051
- name: Setup Node.js
5152
uses: actions/setup-node@v4
@@ -65,4 +66,5 @@ jobs:
6566
- name: Run semantic-release
6667
env:
6768
GH_TOKEN: ${{ secrets.GH_TOKEN }}
69+
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
6870
run: npm run semantic-release

0 commit comments

Comments
 (0)