From db83af717d4ad8c0d14bd13986399e85b89d961c Mon Sep 17 00:00:00 2001 From: mgermerie <73115044+mgermerie@users.noreply.github.com> Date: Tue, 13 Feb 2024 15:15:57 +0100 Subject: [PATCH 1/2] chore(workflow): update GitHub actions to use Node.js 20 --- .github/workflows/integration.yml | 48 +++++++++++++++---------------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index c9791bcf3d..c3981575ee 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -19,11 +19,11 @@ jobs: steps: # Use specific Node.js version - - uses: actions/checkout@v3 - - name: Use Node.js 18.x - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - name: Use Node.js 20.x + uses: actions/setup-node@v4 with: - node-version: 18.x + node-version: 20.x cache: 'npm' # Install packages @@ -51,7 +51,7 @@ jobs: # Prepare archive for deploying - name: Archive production artifacts if: ${{ success() }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: dist-itowns path: | @@ -84,11 +84,11 @@ jobs: steps: # Use specific Node.js version - - uses: actions/checkout@v3 - - name: Use Node.js 18.x - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - name: Use Node.js 20.x + uses: actions/setup-node@v4 with: - node-version: 18.x + node-version: 20.x cache: 'npm' # Install packages @@ -114,11 +114,11 @@ jobs: steps: # Use specific Node.js version - - uses: actions/checkout@v3 - - name: Use Node.js 18.x - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - name: Use Node.js 20.x + uses: actions/setup-node@v4 with: - node-version: 18.x + node-version: 20.x cache: 'npm' # Install packages @@ -127,7 +127,7 @@ jobs: # Download artifact from build - name: Download itowns bundle - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: dist-itowns @@ -149,17 +149,17 @@ jobs: contents: write steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: # fetch all branches fetch-depth: 0 # Configure git user for later command induced commits - - uses: fregante/setup-git-user@v1 + - uses: fregante/setup-git-user@v2 - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 20.x registry-url: https://registry.npmjs.org/ - run: npm ci @@ -202,7 +202,7 @@ jobs: # Download artifact from build - name: Download itowns bundle - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: dist-itowns @@ -261,12 +261,12 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - - name: Use Node.js 18.x - uses: actions/setup-node@v3 + - name: Use Node.js 20.x + uses: actions/setup-node@v4 with: - node-version: 18.x + node-version: 20.x - name: Message commit run: echo "is RELEASE => ${{ github.event.head_commit.message }} !!" @@ -288,7 +288,7 @@ jobs: # Download artifact from build - name: Download itowns bundle - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: dist-itowns From e4518b7fc7cb75d02b9f84127724214c5bf17f1f Mon Sep 17 00:00:00 2001 From: mgermerie <73115044+mgermerie@users.noreply.github.com> Date: Tue, 13 Feb 2024 15:33:50 +0100 Subject: [PATCH 2/2] chore(temporary): test deployment --- .github/workflows/integration.yml | 8 ++++---- package.json | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index c3981575ee..3fde3612f4 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -131,8 +131,8 @@ jobs: with: name: dist-itowns - - name: Run functional tests - run: npm run test-functional + # - name: Run functional tests + # run: npm run test-functional # Publish NPM package @@ -231,7 +231,7 @@ jobs: uses: peaceiris/actions-gh-pages@v3 with: deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }} - external_repository: iTowns/itowns.github.io + external_repository: mgermerie/itowns.github.io publish_dir: ./itowns destination_dir: ./itowns publish_branch: master @@ -246,7 +246,7 @@ jobs: uses: peaceiris/actions-gh-pages@v3 with: deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }} - external_repository: iTowns/itowns.github.io + external_repository: mgermerie/itowns.github.io publish_dir: ./itowns destination_dir: ./itowns/dev publish_branch: master diff --git a/package.json b/package.json index 98721094d6..f784b0f0b9 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "itowns", + "name": "itowns-chore-update-workflow", "version": "2.42.0", "description": "A JS/WebGL framework for 3D geospatial data visualization", "main": "lib/Main.js", @@ -48,7 +48,7 @@ ], "repository": { "type": "git", - "url": "git+https://github.com/iTowns/itowns.git" + "url": "git+https://github.com/mgermerie/itowns.git" }, "license": "(CECILL-B OR MIT)", "bugs": {