From 4d46b8b5b703d6002f92e73148d38109c32653ee Mon Sep 17 00:00:00 2001 From: Will Cory Date: Tue, 31 Oct 2023 18:25:10 -0700 Subject: [PATCH] :construction_worker: chore: Remove prerelease workflow --- .github/workflows/prerelease-exit.yml | 37 ------------------ .github/workflows/prerelease.yml | 56 --------------------------- .github/workflows/release.yml | 8 +--- 3 files changed, 1 insertion(+), 100 deletions(-) delete mode 100644 .github/workflows/prerelease-exit.yml delete mode 100644 .github/workflows/prerelease.yml diff --git a/.github/workflows/prerelease-exit.yml b/.github/workflows/prerelease-exit.yml deleted file mode 100644 index b5623c48..00000000 --- a/.github/workflows/prerelease-exit.yml +++ /dev/null @@ -1,37 +0,0 @@ -name: Exit Prerelease Mode - -on: - workflow_dispatch: - inputs: - branch: - description: "Exit prerelease mode on release branch" - type: string - default: "main" - required: true - -jobs: - exit_prerelease: - name: Changesets Exit Prerelease - runs-on: ubuntu-latest - # Allow GITHUB_TOKEN to have write permissions - permissions: - contents: write - - steps: - - uses: actions/checkout@v3 - name: Checkout Repo - with: - submodules: recursive - - - name: "Setup" - uses: ./.github/actions/setup - - - name: Remove pre.json - run: pnpm changeset pre exit - - - uses: stefanzweifel/git-auto-commit-action@v4 - with: - commit_message: Exit prerelease mode - # Commit these changes to the branch workflow is running against - branch: ${{ github.event.inputs.branch }} - diff --git a/.github/workflows/prerelease.yml b/.github/workflows/prerelease.yml deleted file mode 100644 index 49282cfb..00000000 --- a/.github/workflows/prerelease.yml +++ /dev/null @@ -1,56 +0,0 @@ -name: Prerelease 🚀 - -on: - push: - branches: - # Target main branch - - "main" - -concurrency: ${{ github.workflow }}-${{ github.ref }} - -jobs: - prerelease: - name: Changests Prerelease - runs-on: ubuntu-latest - environment: release - # Permissions necessary for Changesets to push a new branch and open PRs - # (for automated Version Packages PRs), and request the JWT for provenance. - # More info: https://docs.github.com/en/actions/deployment/security-hardening-your-deployments/about-security-hardening-with-openid-connect#adding-permissions-settings - permissions: - contents: write - pull-requests: write - id-token: write - steps: - - uses: actions/checkout@v3 - name: Checkout Repo - with: - submodules: recursive - - - name: "Setup" - uses: ./.github/actions/setup - - - name: Set deployment token - run: npm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}" - env: - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - - - name: Check for pre.json file existence - id: check_files - uses: andstor/file-existence-action@v2.0.0 - with: - files: ".changeset/pre.json" - - - name: Enter next prerelease mode - # If .changeset/pre.json does not exist and we did not recently exit - # prerelease mode, enter prerelease mode with tag next - if: steps.check_files.outputs.files_exists == 'false' && !contains(github.event.head_commit.message, 'Exit prerelease') - run: npx changeset pre enter next - - - name: Create next version PR or publish 🚀 - uses: changesets/action@v1 - with: - version: pnpm release:version - publish: pnpm release:publish - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ac3a7548..cae4db04 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,7 +3,7 @@ name: Version 🔖 on: push: branches: - - v2 + - main concurrency: ${{ github.workflow }}-${{ github.ref }} @@ -29,12 +29,6 @@ jobs: shell: bash run: pnpm build - - name: Check for pre.json file existence - id: check_files - uses: andstor/file-existence-action@v2.0.0 - with: - files: ".changeset/pre.json" - - name: Set deployment token run: npm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}"