7575 working-directory : package
7676 run : pnpm publish --access public --provenance
7777
78+ - uses : actions/create-github-app-token@v2
79+ id : app-token
80+ with :
81+ app-id : ${{ vars.APP_ID }}
82+ private-key : ${{ secrets.PRIVATE_KEY }}
83+
7884 - name : Create GitHub Release with tag
7985 id : create-release
8086 run : |
8490 --notes "$PR_BODY")
8591 echo "url=$RELEASE_URL" >> $GITHUB_OUTPUT
8692 env :
87- GH_TOKEN : ${{ github .token }}
93+ GH_TOKEN : ${{ steps.app-token.outputs .token }}
8894 VERSION : ${{ steps.package.outputs.version }}
8995 SHA : ${{ github.sha }}
9096 PR_BODY : ${{ github.event.pull_request.body }}
@@ -102,7 +108,7 @@ jobs:
102108 - 🏷️ GitHub Release: $RELEASE_URL
103109 - 🔗 Workflow run: $SERVER_URL/$REPOSITORY/actions/runs/$RUN_ID"
104110 env :
105- GH_TOKEN : ${{ github .token }}
111+ GH_TOKEN : ${{ steps.app-token.outputs .token }}
106112 PR_NUMBER : ${{ github.event.pull_request.number }}
107113 VERSION : ${{ steps.package.outputs.version }}
108114 PACKAGE_NAME : ${{ steps.package.outputs.name }}
@@ -123,7 +129,7 @@ jobs:
123129 Please check the workflow logs for details.
124130 🔗 Workflow run: $SERVER_URL/$REPOSITORY/actions/runs/$RUN_ID"
125131 env :
126- GH_TOKEN : ${{ github .token }}
132+ GH_TOKEN : ${{ steps.app-token.outputs .token }}
127133 PR_NUMBER : ${{ github.event.pull_request.number }}
128134 VERSION : ${{ steps.package.outputs.version }}
129135 SERVER_URL : ${{ github.server_url }}
0 commit comments