diff --git a/.github/workflows/update-versions.yml b/.github/workflows/update-versions.yml deleted file mode 100644 index ab84ee421..000000000 --- a/.github/workflows/update-versions.yml +++ /dev/null @@ -1,43 +0,0 @@ -name: Update preview - -on: - workflow_run: - workflows: ["Release packages"] - types: - - completed - -jobs: - update_preview: - runs-on: ubuntu-latest - permissions: - contents: "write" - pull-requests: "write" - steps: - - uses: actions/checkout@v2 - with: - ref: "main" - fetch-depth: 0 - - name: "Get latest tag" - id: latesttag - uses: "WyriHaximus/github-action-get-previous-tag@v1" - - uses: actions/setup-node@v4 - with: - node-version: 20 - - run: npm install -g yarn - - name: Update versions - env: - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - run: | - git config --global user.email "github@action.code" - git config --global user.name "Github Action" - ./scripts/update-versions.sh ${{ steps.latesttag.outputs.tag }} - shell: bash - - name: Create Pull Request - uses: peter-evans/create-pull-request@v4 - with: - branch: update-versions-to-${{ steps.latesttag.outputs.tag }} - title: Update @ably/ui version in repo to ${{ steps.latesttag.outputs.tag }} - body: "Update files that are not updated during the release process. - Sometimes published packages are not available immediately so we open this PR for convenience." - # This is doesn't work due to what seems a permission issue https://github.com/peter-evans/create-pull-request/issues/155 - # team-reviewers: "team-website" diff --git a/scripts/update-versions.sh b/scripts/update-versions.sh deleted file mode 100755 index 52dfb44a1..000000000 --- a/scripts/update-versions.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/bash - -# See https://coderwall.com/p/fkfaqq/safer-bash-scripts-with-set-euxo-pipefail -set -euo pipefail -env - -VERSION=$1 - -echo "Update package version" -yarn version --new-version $VERSION --no-git-tag-version - -echo "Commit app update to $VERSION" -git add package.json yarn.lock -git commit -m "Update package version to @ably/ui $VERSION"