From ebfee3ea8655f243cbc46cac2da906c1437cf360 Mon Sep 17 00:00:00 2001 From: Dennis Kigen Date: Wed, 6 Mar 2024 11:09:16 +0300 Subject: [PATCH] (chore) Bump GitHub Actions --- .github/workflows/ci.yml | 30 +++++++++++++++--------------- package.json | 2 +- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8d3f826..083a154 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,16 +18,16 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Use Node.js - uses: actions/setup-node@v1 + uses: actions/setup-node@v4 with: - node-version: "18.x" + node-version: "18" - run: yarn install --immutable - run: yarn verify - run: yarn build - name: Upload Artifacts - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: dist path: | @@ -41,15 +41,15 @@ jobs: if: ${{ github.event_name == 'push' }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Download Artifacts - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v4 - name: Setup Node.js - uses: actions/setup-node@v1 + uses: actions/setup-node@v4 with: - node-version: "18.x" + node-version: "18" registry-url: "https://registry.npmjs.org" - name: Install dependencies @@ -63,12 +63,12 @@ jobs: env: NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} - name: Upload Artifacts - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: dist path: | dist - + deploy_fast_data_entry_app: runs-on: ubuntu-latest @@ -78,7 +78,7 @@ jobs: steps: - name: Trigger RefApp Build - uses: fjogeleit/http-request-action@master + uses: fjogeleit/http-request-action@v1 with: url: https://ci.openmrs.org/rest/api/latest/queue/O3-BF method: "POST" @@ -92,13 +92,13 @@ jobs: if: ${{ github.event_name == 'release' }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Download Artifacts - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v4 - name: Use Node.js - uses: actions/setup-node@v1 + uses: actions/setup-node@v4 with: - node-version: "18.x" + node-version: "18" registry-url: 'https://registry.npmjs.org' - run: yarn config set npmAuthToken "${NODE_AUTH_TOKEN}" && yarn npm publish env: diff --git a/package.json b/package.json index c3d5477..6092b82 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "build": "webpack --mode production", "analyze": "webpack --mode=production --env.analyze=true", "lint": "eslint \"src/**/*.ts\" \"src/**/*.tsx\" --fix --max-warnings=0 -c .eslintrc.js", - "prettier": "prettier --write \"src/**/*.{ts,tsx}\"", + "prettier": "prettier --write \"src/**/*.{ts,tsx}\" --list-different", "typescript": "tsc", "test": "jest --config jest.config.json --passWithNoTests", "verify": "concurrently 'yarn:lint' 'yarn:test' 'yarn:typescript'",