12
12
release :
13
13
name : " Release"
14
14
runs-on : ubuntu-latest
15
+ environment : npm-deploy
15
16
permissions : write-all
16
17
# Ensure that the workflow runs only after a commit is pushed into the branch
17
18
# and not when the branch is created.
42
43
- name : Ensure NPM access
43
44
run : npm whoami
44
45
env :
45
- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
46
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_DEPLOY_TOKEN }}
46
47
47
48
- name : Build
48
49
run : pnpm build
74
75
githubTagName : ${{ env.RELEASE_VERSION }}
75
76
env :
76
77
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
77
- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
78
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_DEPLOY_TOKEN }}
78
79
79
80
- name : Prettify changelog
80
81
run : pnpm changeset:update-changelog
@@ -108,7 +109,7 @@ jobs:
108
109
pnpm changeset version --snapshot next
109
110
pnpm changeset publish --tag next
110
111
env :
111
- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
112
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_DEPLOY_TOKEN }}
112
113
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
113
114
114
115
# ensure docs are always deployed after merge of changeset PR
@@ -119,14 +120,15 @@ jobs:
119
120
if : startsWith(env.LAST_COMMIT_MSG, 'ci(release):') && env.RELEASE_VERSION_HIGHER_THAN_LATEST == 'true'
120
121
run : echo SHOULD_DEPLOY_DOCS=true >> $GITHUB_ENV
121
122
122
- - name : Update docs (nightly)
123
- if : github.ref_name == 'master' && env.SHOULD_DEPLOY_DOCS == 'true'
124
- uses : benc-uk/workflow-dispatch@v1
125
- with :
126
- workflow : update-nightly.yml
127
- ref : master
128
- repo : FuelLabs/docs-hub
129
- token : ${{ secrets.GITHUB_TOKEN }}
123
+ # # Commenting out as we require permissions to trigger across repos
124
+ # - name: Update docs (nightly)
125
+ # if: github.ref_name == 'master' && env.SHOULD_DEPLOY_DOCS == 'true'
126
+ # uses: benc-uk/workflow-dispatch@v1
127
+ # with:
128
+ # workflow: update-nightly.yml
129
+ # ref: master
130
+ # repo: FuelLabs/docs-hub
131
+ # token: ${{ secrets.GITHUB_TOKEN }}
130
132
131
133
- name : Create PR to apply latest release to master
132
134
if : steps.changesets.outputs.published == 'true' && startsWith(github.ref_name, 'release/') && env.RELEASE_VERSION_HIGHER_THAN_LATEST == 'true'
@@ -178,10 +180,11 @@ jobs:
178
180
env :
179
181
S3_CDN_BUCKET : ${{ secrets.S3_CDN_BUCKET }}
180
182
181
- - name : Notify migrations and disclosures of the new release (breaking changes)
182
- run : |
183
- curl -X POST \
184
- -H "Accept: application/vnd.github.v3+json" \
185
- -H "Authorization: token ${{ secrets.MIGRATIONS_RELEASE_TRIGGER_TOKEN }}" \
186
- https://api.github.com/repos/FuelLabs/migrations-and-disclosures/dispatches \
187
- -d '{"event_type":"update_versions"}'
183
+ # # Commenting out as we require permissions to trigger across repos
184
+ # - name: Notify migrations and disclosures of the new release (breaking changes)
185
+ # run: |
186
+ # curl -X POST \
187
+ # -H "Accept: application/vnd.github.v3+json" \
188
+ # -H "Authorization: token ${{ secrets.MIGRATIONS_RELEASE_TRIGGER_TOKEN }}" \
189
+ # https://api.github.com/repos/FuelLabs/migrations-and-disclosures/dispatches \
190
+ # -d '{"event_type":"update_versions"}'
0 commit comments