File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -81,20 +81,20 @@ jobs:
8181 - name : Version snapshot from changesets
8282 if : steps.changesets.outputs.count != '0'
8383 env :
84- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
84+ GITHUB_TOKEN : ${{ secrets.GH_PACKAGES_TOKEN || secrets. GITHUB_TOKEN }}
8585 run : bunx changeset version --snapshot pr-${{ github.event.pull_request.number }}
8686
8787 - name : Configure npm auth for GitHub Packages
8888 if : steps.changesets.outputs.count != '0'
8989 env :
90- NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
90+ NODE_AUTH_TOKEN : ${{ secrets.GH_PACKAGES_TOKEN || secrets. GITHUB_TOKEN }}
9191 run : |
9292 echo "@dotgithub:registry=https://npm.pkg.github.com" >> ~/.npmrc
9393 echo "//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}" >> ~/.npmrc
9494
9595 - name : Publish snapshot tag
9696 if : steps.changesets.outputs.count != '0'
9797 env :
98- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
99- NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
98+ GITHUB_TOKEN : ${{ secrets.GH_PACKAGES_TOKEN || secrets. GITHUB_TOKEN }}
99+ NODE_AUTH_TOKEN : ${{ secrets.GH_PACKAGES_TOKEN || secrets. GITHUB_TOKEN }}
100100 run : bunx changeset publish --tag pr-${{ github.event.pull_request.number }} --registry https://npm.pkg.github.com
Original file line number Diff line number Diff line change 4444 - name : Version packages from changesets
4545 if : steps.changesets.outputs.count != '0'
4646 env :
47- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
47+ GITHUB_TOKEN : ${{ secrets.GH_PACKAGES_TOKEN || secrets. GITHUB_TOKEN }}
4848 run : bun run changeset:version
4949
5050 - name : Commit version updates to main
@@ -59,14 +59,14 @@ jobs:
5959 - name : Configure npm auth for GitHub Packages
6060 if : steps.changesets.outputs.count != '0'
6161 env :
62- NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
62+ NODE_AUTH_TOKEN : ${{ secrets.GH_PACKAGES_TOKEN || secrets. GITHUB_TOKEN }}
6363 run : |
6464 echo "@dotgithub:registry=https://npm.pkg.github.com" >> ~/.npmrc
6565 echo "//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}" >> ~/.npmrc
6666
6767 - name : Publish packages
6868 if : steps.changesets.outputs.count != '0'
6969 env :
70- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
71- NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
70+ GITHUB_TOKEN : ${{ secrets.GH_PACKAGES_TOKEN || secrets. GITHUB_TOKEN }}
71+ NODE_AUTH_TOKEN : ${{ secrets.GH_PACKAGES_TOKEN || secrets. GITHUB_TOKEN }}
7272 run : bun run changeset:publish
You can’t perform that action at this time.
0 commit comments