diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index e7150e233..f4ff00fe6 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -17,23 +17,19 @@ jobs: publish-config: runs-on: ubuntu-20.04 - strategy: - matrix: - node: [20.x] # This should be LTS - steps: - name: Checkout code uses: actions/checkout@v4 with: fetch-depth: 0 # Fetch the history, or this action won't work - - name: Use Node.js ${{ matrix.node }} + - name: Use Node.js 20.x uses: actions/setup-node@v4 with: - node-version: ${{ matrix.node }} + node-version: 20.x - - name: Install dependencies - run: npm ci -f + - name: Install Dependencies + run: npm run install-monorepo - name: 'Build backend' run: npm run build:backend -w packages/admin diff --git a/.github/workflows/test-and-release.yml b/.github/workflows/test-and-release.yml index 4c7b84b71..30f3eb93d 100644 --- a/.github/workflows/test-and-release.yml +++ b/.github/workflows/test-and-release.yml @@ -30,32 +30,12 @@ jobs: with: node-version: 20.x - - name: 'Install' - run: npm i -f - - - name: 'Install Adapter' - run: npm i -w packages/admin -f - - - name: 'Install FE' - run: | - cd packages/admin/src-admin - npm i -f - - - name: 'Lint Backend' - run: npm run lint-backend -w packages/admin + - name: Install Dependencies + run: npm run install-monorepo - name: 'Build backend' run: npm run build:backend -w packages/admin - - name: 'Build adapter-react-v5' - run: npm run build -w packages/adapter-react-v5 - - - name: 'Build JsonConfig' - run: npm run build -w packages/jsonConfig - - - name: 'Build dm-gui-components' - run: npm run build -w packages/dm-gui-components - - name: Check TypeScript files run: | cd packages/admin/src-admin @@ -63,10 +43,8 @@ jobs: # Wait till js-controller 7 types are available continue-on-error: true - - name: 'Build' - run: | - npm run clean - NODE_OPTIONS=--max_old_space_size=4096 npm run build + - name: Build + run: NODE_OPTIONS=--max_old_space_size=8192 npm run build # Runs adapter tests on all supported node versions and OSes adapter-tests: @@ -110,43 +88,14 @@ jobs: with: node-version: 20.x - - name: 'Install' - run: npm i -f - - - name: 'Install Adapter' - run: npm i -w packages/admin -f - - - name: 'Install FE' - run: | - cd packages/admin/src-admin - npm i -f - - - name: 'Lint Backend' - run: npm run lint-backend -w packages/admin + - name: Install Dependencies + run: npm run install-monorepo - name: 'Build backend' run: npm run build:backend -w packages/admin - - name: 'Build adapter-react-v5' - run: npm run build -w packages/adapter-react-v5 - - - name: 'Build JsonConfig' - run: npm run build -w packages/jsonConfig - - - name: 'Build dm-gui-components' - run: npm run build -w packages/dm-gui-components - - - name: Check TypeScript files - run: | - cd packages/admin/src-admin - npm run check-ts - # Wait till js-controller 7 types are available - continue-on-error: true - - - name: 'Build' - run: | - npm run clean - NODE_OPTIONS=--max_old_space_size=4096 npm run build + - name: Build + run: NODE_OPTIONS=--max_old_space_size=8192 npm run build - name: Run GUI tests run: npm run test:gui -w packages/admin/