From bb1bf9b078b315e71a72f3acffbeb3df137a1181 Mon Sep 17 00:00:00 2001 From: Dennis Kigen Date: Tue, 2 Jan 2024 21:40:12 +0300 Subject: [PATCH] (chore) Update GitHub Actions (#869) --- .github/workflows/ci.yml | 26 +++++++++++++------------- .github/workflows/e2e.yml | 6 +++--- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9a59e7c06..b8a233f4c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,9 +22,9 @@ jobs: actions: read steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Setup Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: registry-url: "https://registry.npmjs.org" node-version: "18" @@ -55,15 +55,15 @@ jobs: pre_release: runs-on: ubuntu-latest needs: build - - if: ${{ (github.event.head_commit == null || - !startsWith(github.event.head_commit.message, '(chore) Release v')) && + + if: ${{ (github.event.head_commit == null || + !startsWith(github.event.head_commit.message, '(chore) Release v')) && (github.event_name == 'push' || github.event_name == 'workflow_dispatch') }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Setup Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: registry-url: "https://registry.npmjs.org" node-version: "18" @@ -91,7 +91,7 @@ jobs: - name: Build run: yarn turbo run build --color --concurrency=5 - + - run: git config user.email "info@openmrs.org" && git config user.name "OpenMRS CI" - run: git add . && git commit -m "Prerelease version" --no-verify @@ -101,7 +101,7 @@ jobs: NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} - name: Upload Artifacts - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: packages path: | @@ -114,9 +114,9 @@ jobs: if: ${{ github.event_name == 'release' }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Setup Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: registry-url: "https://registry.npmjs.org" node-version: "18" @@ -145,8 +145,8 @@ jobs: needs: pre_release - if: ${{ (github.event.head_commit == null || - !startsWith(github.event.head_commit.message, '(release)')) && + if: ${{ (github.event.head_commit == null || + !startsWith(github.event.head_commit.message, '(release)')) && (github.event_name == 'push' || github.event_name == 'workflow_dispatch') }} steps: diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 736e1717f..d40ece898 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -14,13 +14,13 @@ jobs: timeout-minutes: 15 steps: - name: Checkout repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Copy test environment variables run: cp example.env .env - name: Setup node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: 18 @@ -54,7 +54,7 @@ jobs: run: docker stop $(docker ps -a -q) - name: Upload report - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 if: always() with: name: playwright-report