File tree Expand file tree Collapse file tree 5 files changed +11
-6
lines changed
Expand file tree Collapse file tree 5 files changed +11
-6
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+ GH_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 : ${{ env .GH_TOKEN }}
25+ GH_TOKEN : ${{ inputs .GH_TOKEN }}
Original file line number Diff line number Diff line change @@ -56,11 +56,10 @@ 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- env :
6059 GH_TOKEN : ${{ secrets.GH_TOKEN }}
6160` ` `
6261
63- This action reads the token from the ` GH_TOKEN` environment variable .
62+ This action requires the ` GH_TOKEN` input to authenticate with the GitHub API .
6463
6564# # Requirements
6665
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+ GH_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 : ${{ env .GH_TOKEN }}
18+ GH_TOKEN : ${{ inputs .GH_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- env :
66+ with :
6767 GH_TOKEN : ${{ secrets.GH_TOKEN }}
Original file line number Diff line number Diff line change 4545 uses : ./.github/comment-on-release
4646 with :
4747 published-packages : ${{ steps.changesets.outputs.publishedPackages }}
48- env :
4948 GH_TOKEN : ${{ secrets.GH_TOKEN }}
You can’t perform that action at this time.
0 commit comments