From aae18b0fcc9fa0907355ef6329a89d49b8c8ea48 Mon Sep 17 00:00:00 2001 From: Ollie Curtis <8831547+olliecurtis@users.noreply.github.com> Date: Wed, 11 Oct 2023 16:11:01 +0100 Subject: [PATCH] [ARGG-784]: Release pipeline for cra5 testing --- .github/workflows/fork_cra5.yml | 57 +++------------------------------ 1 file changed, 5 insertions(+), 52 deletions(-) diff --git a/.github/workflows/fork_cra5.yml b/.github/workflows/fork_cra5.yml index 32aaf05928..76ee639208 100644 --- a/.github/workflows/fork_cra5.yml +++ b/.github/workflows/fork_cra5.yml @@ -8,57 +8,11 @@ defaults: run: shell: bash -l {0} -env: - CACHE_NAME: node-modules-cache - BUILD_CACHE_NAME: build-cache - jobs: - Create-NPM-Cache: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - - uses: actions/setup-node@v3 - with: - node-version: 16.x - - - name: Upload to Cache - uses: actions/cache@v3.3.2 - id: npm-cache - with: - path: node_modules/ - key: ${{ env.CACHE_NAME }}-${{ hashFiles('packages/**') }} - - - name: Install dependencies - if: ${{ steps.npm-cache.outputs.cache-hit != 'true' }} - run: npm ci - - TestBuild: - runs-on: ubuntu-latest - needs: [Create-NPM-Cache] - steps: - - uses: actions/checkout@v4 - - - name: Use Node.js - uses: actions/setup-node@v2 - with: - node-version: 16.x - - - name: Restore Cache - uses: actions/cache/restore@v3.3.2 - id: npm-cache - with: - path: node_modules/ - key: ${{ env.CACHE_NAME }}-${{ hashFiles('packages/**') }} - - - name: Run e2e - run: tasks/e2e-brs.sh - ReleaseWeb: name: Release dev version to NPM runs-on: ubuntu-latest environment: Publishing - needs: [Create-NPM-Cache, TestBuild] steps: - name: Checkout source code uses: actions/checkout@v4 @@ -70,18 +24,17 @@ jobs: with: node-version: 16.x - - name: Restore Cache - uses: actions/cache/restore@v3.3.2 - id: npm-cache - with: - path: node_modules/ - key: ${{ env.CACHE_NAME }}-${{ hashFiles('packages/**') }} + - name: Install + run: npm ci --prefer-offline - name: Build react-error-overlay run: | cd packages/react-error-overlay/ npm run build:prod + - name: Build + run: npm run build + - name: Publish NPM package run: | cd packages/react-scripts