24
24
with :
25
25
fetch-depth : 0
26
26
ref : ${{ github.event.pull_request.head.ref }}
27
- # workaround to ensure force pushes to changeset branch use REPO_TOKEN owner's account
28
- # see https://github.com/changesets/action/issues/70
29
- persist-credentials : false
30
27
31
28
- name : CI Setup
32
29
uses : ./.github/actions/ci-setup
@@ -76,13 +73,13 @@ jobs:
76
73
githubReleaseName : ${{ env.RELEASE_VERSION }}
77
74
githubTagName : ${{ env.RELEASE_VERSION }}
78
75
env :
79
- GITHUB_TOKEN : ${{ secrets.REPO_TOKEN }}
76
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
80
77
NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
81
78
82
79
- name : Prettify changelog
83
80
run : pnpm changeset:update-changelog
84
81
env :
85
- GITHUB_TOKEN : ${{ secrets.REPO_TOKEN }}
82
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
86
83
RELEASE_TAG : ${{ env.RELEASE_VERSION }}
87
84
PUBLISHED : ${{ steps.changesets.outputs.published }}
88
85
REF_NAME : ${{ github.ref_name }}
@@ -129,7 +126,7 @@ jobs:
129
126
workflow : update-nightly.yml
130
127
ref : master
131
128
repo : FuelLabs/docs-hub
132
- token : ${{ secrets.REPO_TOKEN }}
129
+ token : ${{ secrets.GITHUB_TOKEN }}
133
130
134
131
- name : Create PR to apply latest release to master
135
132
if : steps.changesets.outputs.published == 'true' && startsWith(github.ref_name, 'release/') && env.RELEASE_VERSION_HIGHER_THAN_LATEST == 'true'
@@ -145,7 +142,7 @@ jobs:
145
142
146
143
gh pr create -B master -H $GITHUB_REF_NAME --title "$PR_TITLE" --body "$PR_BODY"
147
144
env :
148
- GITHUB_TOKEN : ${{ secrets.REPO_TOKEN }}
145
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
149
146
RELEASE_VERSION : ${{ env.RELEASE_VERSION }}
150
147
LATEST_VERSION : ${{ env.LATEST_VERSION }}
151
148
@@ -155,7 +152,7 @@ jobs:
155
152
if : steps.changesets.outputs.published == 'true' && startsWith(github.ref_name, 'release/') && env.RELEASE_VERSION_HIGHER_THAN_LATEST == 'false'
156
153
run : git push origin --delete ${{ github.ref_name }}
157
154
env :
158
- GITHUB_TOKEN : ${{ secrets.REPO_TOKEN }}
155
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
159
156
160
157
# Upload assets to S3
161
158
0 commit comments