From b1fea121b24d6db0a8f0f53d23a39d29dfe0c1d9 Mon Sep 17 00:00:00 2001 From: Lasse Bjermeland Date: Wed, 2 Oct 2024 06:42:55 +0200 Subject: [PATCH] asasf --- .github/workflows/deploy_page.yml | 2 +- .github/workflows/node.yml | 31 ------------------------------- package.json | 2 +- 3 files changed, 2 insertions(+), 33 deletions(-) delete mode 100644 .github/workflows/node.yml diff --git a/.github/workflows/deploy_page.yml b/.github/workflows/deploy_page.yml index 0118247..f5b3171 100644 --- a/.github/workflows/deploy_page.yml +++ b/.github/workflows/deploy_page.yml @@ -23,7 +23,7 @@ jobs: run: npm ci - name: Build project - run: npm run build + run: npm run predeploy - name: Upload build artifacts uses: actions/upload-pages-artifact@v1 # This stores the build output diff --git a/.github/workflows/node.yml b/.github/workflows/node.yml deleted file mode 100644 index 8c3ab19..0000000 --- a/.github/workflows/node.yml +++ /dev/null @@ -1,31 +0,0 @@ -# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node -# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs - -name: Node.js CI - -on: - push: - branches: [ "main" ] - pull_request: - branches: [ "main" ] - -jobs: - build: - - runs-on: ubuntu-latest - - strategy: - matrix: - node-version: [18.x, 20.x, 22.x] - # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ - - steps: - - uses: actions/checkout@v4 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v4 - with: - node-version: ${{ matrix.node-version }} - cache: 'npm' - - run: npm ci - - run: npm run build --if-present - - run: npm test diff --git a/package.json b/package.json index 758a0bd..38f2d0e 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "scripts": { "start": "react-scripts start", "build": "react-scripts build", - "predeploy": "npm run build", + "predeploy": "CI=false && npm run build", "deploy": "gh-pages -d build" }, "eslintConfig": {