File tree Expand file tree Collapse file tree 5 files changed +15
-2
lines changed
Expand file tree Collapse file tree 5 files changed +15
-2
lines changed Original file line number Diff line number Diff line change 11name : Changeset Preview
22description : Generates comment on a PR showing expected version impact
3+ inputs :
4+ token :
5+ description : GitHub token used to post the preview comment
6+ required : true
37runs :
48 using : composite
59 steps :
1822 --body-file /tmp/changeset-preview.md \
1923 --marker "<!-- changeset-version-preview -->"
2024 env :
21- GH_TOKEN : ${{ secrets.GH_TOKEN }}
25+ GH_TOKEN : ${{ inputs.token }}
Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ Add this step to your `.github/workflows/release.yml` file after the `changesets
5656 uses : TanStack/config/.github/comment-on-release@main
5757 with :
5858 published-packages : ${{ steps.changesets.outputs.publishedPackages }}
59+ token : ${{ secrets.GH_TOKEN }}
5960` ` `
6061
6162## Requirements
Original file line number Diff line number Diff line change 44 published-packages :
55 description : ' JSON string of published packages from changesets/action'
66 required : true
7+ token :
8+ description : GitHub token used to comment on PRs and issues
9+ required : true
710runs :
811 using : composite
912 steps :
1215 run : node ${{ github.action_path }}/comment-on-release.ts
1316 env :
1417 PUBLISHED_PACKAGES : ${{ inputs.published-packages }}
15- GH_TOKEN : ${{ secrets.GH_TOKEN }}
18+ GH_TOKEN : ${{ inputs.token }}
Original file line number Diff line number Diff line change 6363 uses : ./.github/setup
6464 - name : Changeset Preview
6565 uses : ./.github/changeset-preview
66+ with :
67+ token : ${{ secrets.GH_TOKEN }}
Original file line number Diff line number Diff line change 3838 publish : pnpm run changeset:publish
3939 commit : ' ci: Version Packages'
4040 title : ' ci: Version Packages'
41+ env :
42+ GH_TOKEN : ${{ secrets.GH_TOKEN }}
4143 - name : Comment on PRs and issues about release
4244 if : steps.changesets.outputs.published == 'true'
4345 uses : ./.github/comment-on-release
4446 with :
4547 published-packages : ${{ steps.changesets.outputs.publishedPackages }}
48+ token : ${{ secrets.GH_TOKEN }}
You can’t perform that action at this time.
0 commit comments