[AAE-11822] fix demoshell and gh act. release

* fixed release

* remove demoshell build from job:build
This commit is contained in:
Marco Carrozzo 2022-12-20 17:03:47 +01:00 committed by GitHub
parent d6e97a672c
commit d29ec85b19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -54,7 +54,29 @@ env:
NODE_OPTIONS: "--max-old-space-size=5120" NODE_OPTIONS: "--max-old-space-size=5120"
jobs: 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: release-demoshell:
needs: [release-npm]
timeout-minutes: 15 timeout-minutes: 15
if: github.event.pull_request.merged == true if: github.event.pull_request.merged == true
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
@ -79,6 +101,7 @@ jobs:
./scripts/travis/release/release-demoshell-docker.sh ./scripts/travis/release/release-demoshell-docker.sh
release-storybook: release-storybook:
needs: [release-npm]
timeout-minutes: 15 timeout-minutes: 15
if: github.event.pull_request.merged == true if: github.event.pull_request.merged == true
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
@ -101,7 +124,8 @@ jobs:
echo $TAGS echo $TAGS
./scripts/travis/release/release-storybook-docker.sh ./scripts/travis/release/release-storybook-docker.sh
npm-release: release-npm:
needs: [build]
timeout-minutes: 15 timeout-minutes: 15
if: github.event.pull_request.merged == true if: github.event.pull_request.merged == true
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
@ -127,7 +151,7 @@ jobs:
run: ./scripts/travis/release/release-npm.sh run: ./scripts/travis/release/release-npm.sh
npm-check-bundle: npm-check-bundle:
needs: [npm-release] needs: [release-npm]
timeout-minutes: 15 timeout-minutes: 15
if: github.event.pull_request.merged == true if: github.event.pull_request.merged == true
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04