diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6b64d28ee2..b69add0df6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -54,7 +54,29 @@ env: NODE_OPTIONS: "--max-old-space-size=5120" jobs: + build: + timeout-minutes: 20 + if: github.event.pull_request.merged == true + name: "Build Components" + runs-on: ubuntu-22.04 + steps: + - name: Checkout repository + uses: actions/checkout@v3 + with: + fetch-depth: 0 + - uses: ./.github/actions/setup + - run: npm -v + - name: install + run: | + npm ci + nx run cli:bundle + nx run testing:bundle + - run: npx nx affected --target=lint $NX_CALCULATION_FLAGS + - run: nx affected:build $NX_CALCULATION_FLAGS --prod --exclude="demoshell" + - uses: ./.github/actions/upload-build-artifacts + release-demoshell: + needs: [release-npm] timeout-minutes: 15 if: github.event.pull_request.merged == true runs-on: ubuntu-22.04 @@ -79,6 +101,7 @@ jobs: ./scripts/travis/release/release-demoshell-docker.sh release-storybook: + needs: [release-npm] timeout-minutes: 15 if: github.event.pull_request.merged == true runs-on: ubuntu-22.04 @@ -101,7 +124,8 @@ jobs: echo $TAGS ./scripts/travis/release/release-storybook-docker.sh - npm-release: + release-npm: + needs: [build] timeout-minutes: 15 if: github.event.pull_request.merged == true runs-on: ubuntu-22.04 @@ -127,7 +151,7 @@ jobs: run: ./scripts/travis/release/release-npm.sh npm-check-bundle: - needs: [npm-release] + needs: [release-npm] timeout-minutes: 15 if: github.event.pull_request.merged == true runs-on: ubuntu-22.04