From 488a6b402a50b0e98ca80661532d4e4278f91c46 Mon Sep 17 00:00:00 2001 From: ankitasen-ubmainz Date: Mon, 12 Jun 2023 14:43:36 +0200 Subject: [PATCH 1/3] added build-npm-action in workflow --- .github/workflows/build-npm.yml | 42 ++------------------------------- 1 file changed, 2 insertions(+), 40 deletions(-) diff --git a/.github/workflows/build-npm.yml b/.github/workflows/build-npm.yml index 9f25efa5b..2e4e0c39f 100644 --- a/.github/workflows/build-npm.yml +++ b/.github/workflows/build-npm.yml @@ -37,46 +37,8 @@ jobs: with: fetch-depth: 0 - - name: Setup kernel for react native, increase watchers - run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p - - name: Use Node.js - uses: actions/setup-node@v3 - with: - node-version: ${{ env.NODEJS_VERSION }} - check-latest: true - always-auth: true - - - name: Set yarn config - run: yarn config set @folio:registry $FOLIO_NPM_REGISTRY - - - name: Set FOLIO NPM snapshot version - run: | - git clone https://github.com/folio-org/folio-tools.git - npm --no-git-tag-version version `folio-tools/github-actions-scripts/folioci_npmver.sh` - rm -rf folio-tools - env: - JOB_ID: ${{ github.run_number }} - - - name: Run yarn install - run: yarn install --ignore-scripts --frozen-lockfile - - - name: Run yarn list - run: yarn list --pattern @folio - - - name: Run yarn lint - run: yarn lint - continue-on-error: true - - - name: Get number of CPU cores - id: cpu-cores - uses: SimenB/github-actions-cpu-cores@v1 - - - name: Run yarn test - run: xvfb-run --server-args="-screen 0 1024x768x24" yarn test $YARN_TEST_OPTIONS --max-workers ${{ steps.cpu-cores.outputs.count }} - - - name: Run yarn formatjs-compile - if : ${{ env.COMPILE_TRANSLATION_FILES == 'true' }} - run: yarn formatjs-compile + - name: Use composite action for yarn based steps + uses: actions/build-npm-action@v0.1 - name: Generate Module descriptor if: ${{ env.PUBLISH_MOD_DESCRIPTOR == 'true' }} From ff1ade939d52123373006425950cc9ff86304c3d Mon Sep 17 00:00:00 2001 From: ankitasen-ubmainz Date: Mon, 12 Jun 2023 14:45:05 +0200 Subject: [PATCH 2/3] Fixed action path --- .github/workflows/build-npm.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-npm.yml b/.github/workflows/build-npm.yml index 2e4e0c39f..a99aac687 100644 --- a/.github/workflows/build-npm.yml +++ b/.github/workflows/build-npm.yml @@ -38,7 +38,7 @@ jobs: fetch-depth: 0 - name: Use composite action for yarn based steps - uses: actions/build-npm-action@v0.1 + uses: ankitasen-ubmainz/build-npm-action@v0.1 - name: Generate Module descriptor if: ${{ env.PUBLISH_MOD_DESCRIPTOR == 'true' }} From ae34bab0f3dce0c0feb2b8399a4ab0a7cec3b005 Mon Sep 17 00:00:00 2001 From: ankitasen-ubmainz Date: Mon, 12 Jun 2023 14:57:55 +0200 Subject: [PATCH 3/3] new action version --- .github/workflows/build-npm.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-npm.yml b/.github/workflows/build-npm.yml index a99aac687..4c443cab5 100644 --- a/.github/workflows/build-npm.yml +++ b/.github/workflows/build-npm.yml @@ -38,7 +38,7 @@ jobs: fetch-depth: 0 - name: Use composite action for yarn based steps - uses: ankitasen-ubmainz/build-npm-action@v0.1 + uses: ankitasen-ubmainz/build-npm-action@v0.2 - name: Generate Module descriptor if: ${{ env.PUBLISH_MOD_DESCRIPTOR == 'true' }}