diff --git a/.github/workflows/create-stable-version.yml b/.github/workflows/create-stable-version.yml index 22904c63a..22834025e 100644 --- a/.github/workflows/create-stable-version.yml +++ b/.github/workflows/create-stable-version.yml @@ -21,28 +21,15 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v3 with: - node-version: '16' - - - name: Update GitHub Actions files - run: | - sed -i '/branches:/a\ - ${{ github.event.inputs.version }}' .github/workflows/changesets-reminder.yml - sed -i '/branches:/a\ - ${{ github.event.inputs.version }}' .github/workflows/deploy.yml + node-version: "16" - name: Create new branch run: | git checkout -b ${{ github.event.inputs.version }} origin/unstable git push -u origin ${{ github.event.inputs.version }} - - name: Create Pull Request - uses: peter-evans/create-pull-request@v5 - with: - token: ${{ secrets.SHOPIFY_GH_ACCESS_TOKEN }} - commit-message: 'Add ${{ github.event.inputs.version }} to watched branches' - title: 'Add ${{ github.event.inputs.version }} to watched branches' - body: 'This PR adds the new stable version ${{ github.event.inputs.version }} to the list of watched branches in the changesets-reminder and deploy GitHub actions.' - branch: 'update-watched-branches-${{ github.event.inputs.version }}' - base: '${{ github.event.inputs.version }}' - + # Note: The following steps currently fail. I am working with the infra team to see if we can + # get a token with the requisite permissions. - name: Create branch protection rule uses: octokit/request-action@v2.x with: diff --git a/documentation/versions-and-deploys.md b/documentation/versions-and-deploys.md index 4e7b4d01f..955f57f04 100644 --- a/documentation/versions-and-deploys.md +++ b/documentation/versions-and-deploys.md @@ -45,6 +45,7 @@ Like the `unstable` branch, the `internal` branch also publishes snapshot releas To create a new stable version, you will need to follow these steps: +1. Add the new stable calver version `YYYY-MM` to the list of watched branches in the [`changesets-reminder`](https://github.com/Shopify/ui-extensions/blob/unstable/.github/workflows/changesets-reminder.yml) and [`deploy`](https://github.com/Shopify/ui-extensions/blob/unstable/.github/workflows/deploy.yml) GitHub actions. 1. Run the "create stable version" action. 1. Pull down the branch that that was created by the GitHub action (it should have the name `changeset-release/{{BRANCH_NAME}}`). Instead of the patch version changes that were made by the action, update the version of all packages manually to be the first patch release of a new version range. For example, if you are creating a `2025-01` API version, you will set the package versions of all packages to `2025.1.0`. Apply this change to `packages/ui-extensions/package.json`, `packages/ui-extensions/CHANGELOG.md`, `packages/ui-extensions-react/package.json`, and `packages/ui-extensions-react/CHANGELOG.md`. > Note: do not update the root-level `package.json`.