From 13d7de8f219e0154fc80c0e24f8608106ec79247 Mon Sep 17 00:00:00 2001 From: dienamo <46058257+dienamo@users.noreply.github.com> Date: Mon, 27 Nov 2023 17:39:56 +0100 Subject: [PATCH 1/2] =?UTF-8?q?mise=20=C3=A0=20jour=20githubactions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy-prod.yml | 20 ++++++++++---------- .github/workflows/deploy-recette.yml | 20 ++++++++++---------- .github/workflows/eslint.yml | 6 +++--- 3 files changed, 23 insertions(+), 23 deletions(-) diff --git a/.github/workflows/deploy-prod.yml b/.github/workflows/deploy-prod.yml index 94a76fe..0fef5c3 100644 --- a/.github/workflows/deploy-prod.yml +++ b/.github/workflows/deploy-prod.yml @@ -13,15 +13,15 @@ jobs: matrix: node-version: [19.7.0] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} cache: 'npm' - name: Retrieve cached dependencies id: retrieve-dependencies - uses: actions/cache@v2 + uses: actions/cache@v3 with: key: node_modules-${{ hashFiles('package-lock.json') }} path: node_modules @@ -30,7 +30,7 @@ jobs: run: npm ci - name: Cache dependencies if not present if: steps.retrieve-dependencies.outputs.cache-hit == false - uses: actions/cache@v2 + uses: actions/cache@v3 with: key: node_modules.-${{ hashFiles('package-lock.json') }} path: node_modules @@ -39,14 +39,14 @@ jobs: needs: dependencies runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Retrieve cached dependencies - uses: actions/cache@v2 + uses: actions/cache@v3 with: key: node_modules-${{ hashFiles('package-lock.json') }} path: node_modules - name: Override .env - uses: SpicyPizza/create-envfile@v1 + uses: SpicyPizza/create-envfile@v2.0 with: envkey_REACT_APP_BLOG_URL: "https://media.conseiller-numerique.gouv.fr" envkey_REACT_APP_DASHBOARD_URL: "https://pilotage.conseiller-numerique.gouv.fr" @@ -64,7 +64,7 @@ jobs: source: ".htaccess" target: "build/.htaccess" - name: Upload release bundle as artifact - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: bundle path: build/* @@ -73,9 +73,9 @@ jobs: needs: build runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Retrieve bundle React - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3 with: name: bundle path: build diff --git a/.github/workflows/deploy-recette.yml b/.github/workflows/deploy-recette.yml index fcdf985..88f0e11 100644 --- a/.github/workflows/deploy-recette.yml +++ b/.github/workflows/deploy-recette.yml @@ -13,15 +13,15 @@ jobs: matrix: node-version: [19.7.0] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} cache: 'npm' - name: Retrieve cached dependencies id: retrieve-dependencies - uses: actions/cache@v2 + uses: actions/cache@v3 with: key: node_modules-${{ hashFiles('package-lock.json') }} path: node_modules @@ -30,7 +30,7 @@ jobs: run: npm ci - name: Cache dependencies if not present if: steps.retrieve-dependencies.outputs.cache-hit == false - uses: actions/cache@v2 + uses: actions/cache@v3 with: key: node_modules.-${{ hashFiles('package-lock.json') }} path: node_modules @@ -39,14 +39,14 @@ jobs: needs: dependencies runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Retrieve cached dependencies - uses: actions/cache@v2 + uses: actions/cache@v3 with: key: node_modules-${{ hashFiles('package-lock.json') }} path: node_modules - name: Override .env - uses: SpicyPizza/create-envfile@v1 + uses: SpicyPizza/create-envfile@v2.0 with: envkey_REACT_APP_BLOG_URL: "https://media.conseiller-numerique.gouv.fr" envkey_REACT_APP_DASHBOARD_URL: "https://beta.pilotage.conseiller-numerique.gouv.fr" @@ -64,7 +64,7 @@ jobs: source: ".htaccess" target: "build/.htaccess" - name: Upload release bundle as artifact - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: bundle path: build/* @@ -73,9 +73,9 @@ jobs: needs: build runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Retrieve bundle React - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3 with: name: bundle path: build diff --git a/.github/workflows/eslint.yml b/.github/workflows/eslint.yml index 7dc0fb5..0df15ea 100644 --- a/.github/workflows/eslint.yml +++ b/.github/workflows/eslint.yml @@ -11,11 +11,11 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node-version: [19.7.0] + node-version: [20] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} - run: npm install From dd70c141df49660959dea0e04b4e623cf3f22cba Mon Sep 17 00:00:00 2001 From: dienamo <46058257+dienamo@users.noreply.github.com> Date: Mon, 27 Nov 2023 18:15:56 +0100 Subject: [PATCH 2/2] =?UTF-8?q?mise=20=C3=A0=20jour=20githubactions=20wip?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy-prod.yml | 2 +- .github/workflows/deploy-recette.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-prod.yml b/.github/workflows/deploy-prod.yml index 0fef5c3..5e2d222 100644 --- a/.github/workflows/deploy-prod.yml +++ b/.github/workflows/deploy-prod.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node-version: [19.7.0] + node-version: [20.9.0] steps: - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} diff --git a/.github/workflows/deploy-recette.yml b/.github/workflows/deploy-recette.yml index 88f0e11..c6586be 100644 --- a/.github/workflows/deploy-recette.yml +++ b/.github/workflows/deploy-recette.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node-version: [19.7.0] + node-version: [20.9.0] steps: - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }}