From ad53db098a71ddaabbd8215f15797b35e6db26e9 Mon Sep 17 00:00:00 2001 From: Rotem Date: Sun, 26 Nov 2023 15:52:22 +0200 Subject: [PATCH] FR-14304 - Re-order pre release steps --- .github/workflows/publish-prerelease.yml | 35 ++++++++++++------------ 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/.github/workflows/publish-prerelease.yml b/.github/workflows/publish-prerelease.yml index 4de1137d..89d19439 100644 --- a/.github/workflows/publish-prerelease.yml +++ b/.github/workflows/publish-prerelease.yml @@ -114,23 +114,6 @@ jobs: SLACK_USERNAME: ${{ github.actor }} SLACK_WEBHOOK: ${{ secrets.ROTEM_SLACK_WEBHOOK }} MSG_MINIMAL: true - - - name: Prepare E2E test workflow - uses: actions/github-script@v5 - env: - PR_REF: '${{ steps.cpr.outputs.pull-request-head-sha }}' - PR_VERSION: '${{ steps.publish_pre_release_version.outputs.LIB_VERSION }}-alpha.${{ github.run_id }}' - with: - script: | - const sha = process.env.PR_REF; - const repo = context.payload.repository.name - const owner = context.payload.repository.organization - - const res = await github.rest.repos.createCommitStatus({ - context, owner, repo, sha, - state: 'pending', - description: 'Dispatching E2E tests...', - }); - name: Wait until NPM registry finished indexing the new version uses: actions/github-script@v6 with: @@ -138,6 +121,7 @@ jobs: const checkingVersion = '${{ steps.publish_pre_release_version.outputs.LIB_VERSION }}-alpha.${{ github.run_id }}'; const checkNpmVersions = require('./scripts/wait-for-npm-indexing.js'); await checkNpmVersions(github, ['@frontegg/react'], checkingVersion); + - name: "Trigger Oauth Service Pipeline Workflow" uses: actions/github-script@v5 env: @@ -159,6 +143,23 @@ jobs: fe_react_version, } }); + + - name: Prepare E2E test workflow + uses: actions/github-script@v5 + env: + PR_REF: '${{ steps.cpr.outputs.pull-request-head-sha }}' + PR_VERSION: '${{ steps.publish_pre_release_version.outputs.LIB_VERSION }}-alpha.${{ github.run_id }}' + with: + script: | + const sha = process.env.PR_REF; + const repo = context.payload.repository.name + const owner = context.payload.repository.organization + + const res = await github.rest.repos.createCommitStatus({ + context, owner, repo, sha, + state: 'pending', + description: 'Dispatching E2E tests...', + }); - name: "Trigger E2E tests" uses: actions/github-script@v5 env: