Skip to content

Commit 35ed053

Browse files
committed
fix(publish): use GH_TOKEN for releases
# Conflicts: # .github/workflows/ci.yml
1 parent 7d7a1cf commit 35ed053

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

.github/changeset-preview/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ runs:
1818
--body-file /tmp/changeset-preview.md \
1919
--marker "<!-- changeset-version-preview -->"
2020
env:
21-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21+
GH_TOKEN: ${{ secrets.GH_TOKEN }}

.github/changeset-preview/upsert-pr-comment.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function parseArgs(argv) {
2626
bodyFile: values['body-file'],
2727
repo: values.repo ?? process.env.GITHUB_REPOSITORY,
2828
marker: values.marker ?? DEFAULT_MARKER,
29-
token: values.token ?? process.env.GITHUB_TOKEN,
29+
token: values.token ?? process.env.GH_TOKEN,
3030
apiUrl:
3131
values['api-url'] ??
3232
(process.env.GITHUB_API_URL || 'https://api.github.com'),
@@ -47,7 +47,7 @@ function parseArgs(argv) {
4747
}
4848

4949
if (!args.token) {
50-
throw new Error('Missing token. Provide --token or GITHUB_TOKEN.')
50+
throw new Error('Missing token. Provide --token or GH_TOKEN.')
5151
}
5252

5353
return args

.github/comment-on-release/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Add this step to your `.github/workflows/release.yml` file after the `changesets
4949
commit: 'ci: Version Packages'
5050
title: 'ci: Version Packages'
5151
env:
52-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
52+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
5353

5454
- name: Comment on PRs about release
5555
if: steps.changesets.outputs.published == 'true'

.github/comment-on-release/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ runs:
1212
run: node ${{ github.action_path }}/comment-on-release.ts
1313
env:
1414
PUBLISHED_PACKAGES: ${{ inputs.published-packages }}
15-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
15+
GH_TOKEN: ${{ secrets.GH_TOKEN }}

0 commit comments

Comments
 (0)