Skip to content

Commit

Permalink
chore: release token (#1158)
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinr-maps authored May 22, 2024
1 parent 46d2dd9 commit fbab086
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ jobs:

- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# GH_TOKEN is maintained in the repository secrets. See RELEASE.md for more information.
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm run release
10 changes: 5 additions & 5 deletions RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

## v4

As of v4, the ArcGIS REST JS packages are released automatically via Semantic Release. To run the release:

1. Temporarily disable the [branch protection rules](https://github.com/Esri/arcgis-rest-js/settings/branches) on the `main` branch.
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.
3. After the release is complete, re-enable the branch protection rules from step 1.
As of v4, the ArcGIS REST JS packages are released automatically via Semantic Release.

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

### Deploy Token

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.

## v3

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

0 comments on commit fbab086

Please sign in to comment.