Skip to content

Commit fbab086

Browse files
authored
chore: release token (#1158)
1 parent 46d2dd9 commit fbab086

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

.github/workflows/release.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ jobs:
7272

7373
- name: Release
7474
env:
75-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
75+
# GH_TOKEN is maintained in the repository secrets. See RELEASE.md for more information.
76+
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
7677
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
7778
run: npm run release

RELEASE.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
## v4
44

5-
As of v4, the ArcGIS REST JS packages are released automatically via Semantic Release. To run the release:
6-
7-
1. Temporarily disable the [branch protection rules](https://github.com/Esri/arcgis-rest-js/settings/branches) on the `main` branch.
8-
2. Find the most recent failed [`Build, Test, Release` GitHub action workflow run](https://github.com/Esri/arcgis-rest-js/actions/workflows/release.yml), and re-run it.
9-
3. After the release is complete, re-enable the branch protection rules from step 1.
5+
As of v4, the ArcGIS REST JS packages are released automatically via Semantic Release.
106

117
**Note:** Any new packages added are published at v1.0.0 instead of 4.0.0.
128

9+
### Deploy Token
10+
11+
The current deploy token is stored as a [repository secret](https://github.com/Esri/arcgis-rest-js/settings/secrets/actions) named `gh_token`, which is a GitHub personal access token. The user who generated that token must have the `Allow specified actors to bypass required pull requests` setting (see repo settings > Branches > `main`) set so that Semantic Release can commit on their behalf.
12+
1313
## v3
1414

1515
The release process has been entirely automated, but it is not perfect, so it requires some attentive human oversight.

0 commit comments

Comments
 (0)