From fbab086073f469969a2e61d449f71cc1ed314a5d Mon Sep 17 00:00:00 2001 From: Gavin Rehkemper Date: Wed, 22 May 2024 20:57:52 +0000 Subject: [PATCH] chore: release token (#1158) --- .github/workflows/release.yml | 3 ++- RELEASE.md | 10 +++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 31113d22cd..7a09f9882e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 diff --git a/RELEASE.md b/RELEASE.md index 237ef41456..3248fa8b39 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -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.