Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 09c0ca1

Browse files
authored
ci(release): set GH_TOKEN when creating GitHub release (#5550)
**What's the problem this PR addresses?** The GitHub CLI requires setting the `GH_TOKEN` environment variable in order to use it. Fixes https://github.com/yarnpkg/berry/actions/runs/5427185945/jobs/9870161176#step:6:414 ``` gh: To use GitHub CLI in a GitHub Actions workflow, set the GH_TOKEN environment variable. Example: env: GH_TOKEN: ${{ github.token }} ``` **How did you fix it?** Set the environment variable. Verified this works with yarnpkg/berry@7e4753c to create https://github.com/yarnpkg/berry/releases/tag/%40yarnpkg%2Fcli%2F3.6.1. **Checklist** - [x] I have read the [Contributing Guide](https://yarnpkg.com/advanced/contributing). - [x] I have set the packages that need to be released for my changes to be effective. - [x] I will check that all automated PR checks pass before the PR gets reviewed.
1 parent 931e8f5 commit 09c0ca1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎.github/workflows/release-branch.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
git push --follow-tags
5454
5555
if [ "$OLD_VERSION" != "$NEW_VERSION" ]; then
56-
gh release create "@yarnpkg/cli/$NEW_VERSION" --title "v$NEW_VERSION" --verify-tag --generate-notes --notes-start-tag "@yarnpkg/cli/$OLD_VERSION"
56+
GH_TOKEN="${{secrets.YARNBOT_TOKEN}}" gh release create "@yarnpkg/cli/$NEW_VERSION" --title "v$NEW_VERSION" --verify-tag --generate-notes --notes-start-tag "@yarnpkg/cli/$OLD_VERSION"
5757
fi
5858
5959
- name: 'Upload the releases'

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /