Skip to content

Commit

Permalink
[ci][release.yml] Use the PAT to run release-it (#56)
Browse files Browse the repository at this point in the history
Need to use PAT to checkout and run release-it, or the
`pubdev-publishing.yml` will not be triggered.

Referred
cycjimmy/semantic-release-action#128

https://github.com/orgs/community/discussions/27194#discussioncomment-7038913
  • Loading branch information
littleGnAl authored Oct 17, 2024
1 parent c9b3923 commit 2e57bf6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ jobs:
with:
ref: main
fetch-depth: 0
# Use the PAT to checkout the codes, see https://github.com/cycjimmy/semantic-release-action/issues/128
token: ${{ secrets.PAT }}
- name: Install release-it
run: |
npm install -g release-it
Expand Down Expand Up @@ -45,4 +47,6 @@ jobs:
--ci
echo "::set-output name=version::${PUBSPEC_VERSION}"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Use PAT to run the release-it, or the pubdev-publishing.yml will not be triggered
# see https://github.com/orgs/community/discussions/27194#discussioncomment-7038913
GITHUB_TOKEN: ${{ secrets.PAT }}

0 comments on commit 2e57bf6

Please sign in to comment.