mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
[AAE-11822] fix demoshell (#8057)
* fix: build demoshell * increased timeout on release * fix release pipe
This commit is contained in:
parent
a73526ef8a
commit
8d074e8b33
84
.github/workflows/release.yml
vendored
84
.github/workflows/release.yml
vendored
@ -9,7 +9,6 @@ on:
|
|||||||
- develop-patch*
|
- develop-patch*
|
||||||
- master-patch*
|
- master-patch*
|
||||||
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||||
@ -55,32 +54,8 @@ env:
|
|||||||
NODE_OPTIONS: "--max-old-space-size=5120"
|
NODE_OPTIONS: "--max-old-space-size=5120"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
release-demoshell:
|
||||||
timeout-minutes: 20
|
timeout-minutes: 15
|
||||||
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"
|
|
||||||
- run: nx $NX_CALCULATION_FLAGS build demoshell --configuration production
|
|
||||||
- run: nx build demoshell --configuration production
|
|
||||||
- uses: ./.github/actions/upload-build-artifacts
|
|
||||||
|
|
||||||
push-demoshell:
|
|
||||||
needs: [build]
|
|
||||||
timeout-minutes: 10
|
|
||||||
if: github.event.pull_request.merged == true
|
if: github.event.pull_request.merged == true
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
@ -90,23 +65,21 @@ jobs:
|
|||||||
fetch-depth: 1
|
fetch-depth: 1
|
||||||
- run: git fetch --all
|
- run: git fetch --all
|
||||||
- uses: ./.github/actions/setup
|
- uses: ./.github/actions/setup
|
||||||
- name: clean
|
with:
|
||||||
|
enable-cache: false
|
||||||
|
- name: install nx and cli
|
||||||
run: |
|
run: |
|
||||||
rm -rf nxcache
|
npm ci
|
||||||
rm -rf dist
|
nx run cli:bundle
|
||||||
- uses: ./.github/actions/download-build-artifacts
|
|
||||||
- run: nx run cli:bundle
|
|
||||||
- name: push Demoshell docker image
|
- name: push Demoshell docker image
|
||||||
run: |
|
run: |
|
||||||
nx build demoshell --configuration production
|
nx build demoshell --configuration production
|
||||||
. ./scripts/travis/release/docker-tag.sh
|
. ./scripts/travis/release/docker-tag.sh
|
||||||
echo $TAGS
|
echo $TAGS
|
||||||
set -u;
|
|
||||||
./scripts/travis/release/release-demoshell-docker.sh
|
./scripts/travis/release/release-demoshell-docker.sh
|
||||||
|
|
||||||
push-storybook:
|
release-storybook:
|
||||||
needs: [build]
|
timeout-minutes: 15
|
||||||
timeout-minutes: 10
|
|
||||||
if: github.event.pull_request.merged == true
|
if: github.event.pull_request.merged == true
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
@ -115,23 +88,21 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- uses: ./.github/actions/setup
|
- uses: ./.github/actions/setup
|
||||||
- name: clean
|
with:
|
||||||
|
enable-cache: false
|
||||||
|
- name: install nx and cli
|
||||||
run: |
|
run: |
|
||||||
rm -rf nxcache
|
npm ci
|
||||||
rm -rf dist
|
nx run cli:bundle
|
||||||
- uses: ./.github/actions/download-build-artifacts
|
|
||||||
- run: nx run cli:bundle
|
|
||||||
- name: push Storybook docker image
|
- name: push Storybook docker image
|
||||||
run: |
|
run: |
|
||||||
nx run stories:build-storybook --configuration ci
|
nx run stories:build-storybook --configuration ci
|
||||||
. ./scripts/travis/release/docker-tag.sh
|
. ./scripts/travis/release/docker-tag.sh
|
||||||
echo $TAGS
|
echo $TAGS
|
||||||
set -u;
|
|
||||||
./scripts/travis/release/release-storybook-docker.sh
|
./scripts/travis/release/release-storybook-docker.sh
|
||||||
|
|
||||||
npm-release:
|
npm-release:
|
||||||
needs: [build]
|
timeout-minutes: 15
|
||||||
timeout-minutes: 10
|
|
||||||
if: github.event.pull_request.merged == true
|
if: github.event.pull_request.merged == true
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
@ -140,12 +111,12 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- uses: ./.github/actions/setup
|
- uses: ./.github/actions/setup
|
||||||
- name: clean
|
with:
|
||||||
|
enable-cache: false
|
||||||
|
- name: install nx and cli
|
||||||
run: |
|
run: |
|
||||||
rm -rf nxcache
|
npm ci
|
||||||
rm -rf dist
|
nx run cli:bundle
|
||||||
- uses: ./.github/actions/download-build-artifacts
|
|
||||||
- run: nx run cli:bundle
|
|
||||||
- name: nx build
|
- name: nx build
|
||||||
run: |
|
run: |
|
||||||
set -u;
|
set -u;
|
||||||
@ -155,19 +126,12 @@ jobs:
|
|||||||
- name: release
|
- name: release
|
||||||
run: ./scripts/travis/release/release-npm.sh
|
run: ./scripts/travis/release/release-npm.sh
|
||||||
|
|
||||||
|
|
||||||
npm-check-bundle:
|
npm-check-bundle:
|
||||||
needs: [npm-release]
|
needs: [npm-release]
|
||||||
timeout-minutes: 10
|
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
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
- uses: ./.github/actions/npm-check-bundle
|
||||||
fetch-depth: 0
|
|
||||||
- uses: ./.github/actions/download-build-artifacts
|
|
||||||
- name: Check npm bundle
|
|
||||||
run: |
|
|
||||||
export ADF_VERSION=$(npm view @alfresco/adf-core@${TAG_NPM} version)
|
|
||||||
./scripts/travis/build/npm-check-bundles.sh -v ${ADF_VERSION}
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user