From be654bebac95adf8453c497fd345e3f775d7a5ee Mon Sep 17 00:00:00 2001 From: Dhenain Ambroise Date: Tue, 10 Jan 2023 18:16:31 +0100 Subject: [PATCH 1/2] Remove references to VERCEL (created from initial repo cloning) --- .github/workflows/run-integration-test.yml | 1 - .github/workflows/update-codeclimate-coverage.yml | 5 +---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/run-integration-test.yml b/.github/workflows/run-integration-test.yml index 5d6cfa3..37cd0e4 100644 --- a/.github/workflows/run-integration-test.yml +++ b/.github/workflows/run-integration-test.yml @@ -1,7 +1,6 @@ # Summary: # Test the GitHub Action using an integration test. # Makes sure the GitHub Action works properly when running on a clean machine, without building anything (integration test). -# This integration test will break if the Vercel project or deployment are deleted, or if the VERCEl_TOKEN doesn't have access to the deployment url. # # See https://github.com/actions/checkout https://github.com/actions/checkout/releases/tag/v3 diff --git a/.github/workflows/update-codeclimate-coverage.yml b/.github/workflows/update-codeclimate-coverage.yml index 02385fb..4cbaf7a 100644 --- a/.github/workflows/update-codeclimate-coverage.yml +++ b/.github/workflows/update-codeclimate-coverage.yml @@ -21,7 +21,7 @@ jobs: - name: Installing node.js uses: actions/setup-node@v3 # Used to install node environment - XXX https://github.com/actions/setup-node with: - node-version: 18 # Use the same node.js version as the one Vercel's uses (currently node18.x) + node-version: 18 run-tests-coverage: name: Run tests coverage and send report to Code Climate runs-on: ubuntu-22.04 @@ -31,9 +31,6 @@ jobs: run: yarn install - uses: paambaati/codeclimate-action@v3.2.0 env: - # XXX Necessary for running tests properly (required). Do not generate the token from a Vercel account with actual production usage. (use a dummy account) - VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} # XXX Define this secret in "Github repo > Settings > Secrets", you can get it from Vercel at https://vercel.com/account/tokens - VERCEL_DOMAIN: ${{ secrets.VERCEL_DOMAIN }} # XXX Define this secret in "Github repo > Settings > Secrets", it should use a domain the VERCEL_TOKEN you provided has access to CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} # XXX Define this secret in "Github repo > Settings > Secrets", you can get it from Code Climate in "Repo settings > Test coverage". with: coverageCommand: yarn test:coverage From 2bd637e46e5ac69db8672d417097de1c1364b134 Mon Sep 17 00:00:00 2001 From: Dhenain Ambroise Date: Tue, 10 Jan 2023 18:29:20 +0100 Subject: [PATCH 2/2] Remove rc releases for current branch --- .github/workflows/auto-git-release-staging.yml | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/.github/workflows/auto-git-release-staging.yml b/.github/workflows/auto-git-release-staging.yml index c3bbe0e..f07f1d2 100644 --- a/.github/workflows/auto-git-release-staging.yml +++ b/.github/workflows/auto-git-release-staging.yml @@ -48,16 +48,6 @@ jobs: echo "previous_commit: ${{steps.next_semantic_version.outputs.previous_commit}}" echo "current_commit: ${{steps.next_semantic_version.outputs.current_commit}}" - - name: Creating Git release tag for the "v${{steps.next_semantic_version.outputs.version}}" version - run: | - gh release create v${{steps.next_semantic_version.outputs.version}} \ - --title "v${{steps.next_semantic_version.outputs.version}}" \ - --generate-notes \ - --prerelease \ - --target $GITHUB_SHA - env: - GH_TOKEN: "${{ secrets.GITHUB_TOKEN }}" - # Check if the major version already exists (if it doesn't, we'll create it - if it does, we'll update it) - name: Check if tag "v${{steps.next_semantic_version.outputs.major}}-rc" exists uses: mukunku/tag-exists-action@v1.2.0