From 25a1e75cffc642824f7849d9a09f95bd6d21063a Mon Sep 17 00:00:00 2001 From: poonam yadav Date: Mon, 25 Sep 2023 18:18:54 +0530 Subject: [PATCH] ELEMENTS-1677: build failed while generating a snapshot for elements project --- .github/workflows/cross-repo.yaml | 4 ++-- .github/workflows/main.yaml | 8 ++++++-- .github/workflows/promote.yaml | 18 +++++++++++------- 3 files changed, 19 insertions(+), 11 deletions(-) diff --git a/.github/workflows/cross-repo.yaml b/.github/workflows/cross-repo.yaml index e22951d85..b2c8d2d66 100644 --- a/.github/workflows/cross-repo.yaml +++ b/.github/workflows/cross-repo.yaml @@ -36,8 +36,8 @@ jobs: inputs: | branch_name: ${{ env.BRANCH_NAME }} sauce_labs: true - skip_ftests: false - skip_a11y: false + skip_ftests: true + skip_a11y: true skip_unit_tests: false generate_metrics: false run_all: false diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index b34ab48de..93677aac1 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -8,6 +8,10 @@ on: # Manually trigger the workflow workflow_dispatch: +# This chages has been changed due to some version issue we will be removed it once we will resolve WEBUI-1266 and WEBUI-1267 +env: + LERNA: lerna@6.6.2 + jobs: lint: uses: nuxeo/nuxeo-elements/.github/workflows/lint.yaml@maintenance-3.0.x @@ -55,7 +59,7 @@ jobs: - name: Set version to ${{ env.VERSION }} run: | npm version $VERSION --no-git-tag-version - npx lerna version $VERSION --no-push --force-publish --no-git-tag-version --yes + npx ${{ env.LERNA }} version $VERSION --no-push --force-publish --no-git-tag-version --yes - name: Tag run: | @@ -66,4 +70,4 @@ jobs: - name: Publish env: NODE_AUTH_TOKEN: ${{ secrets.NPM_PACKAGES_TOKEN }} - run: npx lerna exec --ignore @nuxeo/nuxeo-elements-storybook -- npm publish --tag SNAPSHOT + run: npx ${{ env.LERNA }} exec --ignore @nuxeo/nuxeo-elements-storybook -- npm publish --tag SNAPSHOT diff --git a/.github/workflows/promote.yaml b/.github/workflows/promote.yaml index 1dc59f2c5..41c8ed0d6 100644 --- a/.github/workflows/promote.yaml +++ b/.github/workflows/promote.yaml @@ -14,7 +14,11 @@ on: description: 'Run the workflow without pushing code or publishing artifacts' type: boolean required: false - + +# This chages has been changed due to some version issue we will be removed it once we will resolve WEBUI-1266 and WEBUI-1267 +env: + LERNA: lerna@6.6.2 + jobs: promote: runs-on: ubuntu-latest @@ -36,7 +40,7 @@ jobs: - name: Update Nuxeo Elements version to ${{ env.VERSION }} run: | npm version $VERSION --no-git-tag-version - npx lerna version $VERSION --no-push --force-publish --no-git-tag-version --yes + npx ${{ env.LERNA }} version $VERSION --no-push --force-publish --no-git-tag-version --yes - name: Tag Nuxeo Elements v${{ env.VERSION }} run: | @@ -60,21 +64,21 @@ jobs: env: NODE_AUTH_TOKEN: ${{ secrets.NPM_PACKAGES_TOKEN }} run: | - npx lerna exec --ignore @nuxeo/nuxeo-elements-storybook -- npm publish --@nuxeo:registry=https://packages.nuxeo.com/repository/npm-public/ --dry-run + npx ${{ env.LERNA }} exec --ignore @nuxeo/nuxeo-elements-storybook -- npm publish --@nuxeo:registry=https://packages.nuxeo.com/repository/npm-public/ --dry-run - name: Publish to https://packages.nuxeo.com/repository/npm-public/ if: ${{ github.event.inputs.dryRun == 'false' }} env: NODE_AUTH_TOKEN: ${{ secrets.NPM_PACKAGES_TOKEN }} run: | - npx lerna exec --ignore @nuxeo/nuxeo-elements-storybook -- npm publish --@nuxeo:registry=https://packages.nuxeo.com/repository/npm-public/ + npx ${{ env.LERNA }} exec --ignore @nuxeo/nuxeo-elements-storybook -- npm publish --@nuxeo:registry=https://packages.nuxeo.com/repository/npm-public/ - name: Publish to https://registry.npmjs.org (dry run) if: ${{ github.event.inputs.dryRun == 'true' }} env: NODE_AUTH_TOKEN: ${{ secrets.NPM_REGISTRY_TOKEN }} run: | - npx lerna exec --ignore @nuxeo/nuxeo-elements-storybook -- npm publish --@nuxeo:registry=https://registry.npmjs.org/ --access public --dry-run + npx ${{ env.LERNA }} exec --ignore @nuxeo/nuxeo-elements-storybook -- npm publish --@nuxeo:registry=https://registry.npmjs.org/ --access public --dry-run - name: Publish to https://registry.npmjs.org continue-on-error: true @@ -82,7 +86,7 @@ jobs: env: NODE_AUTH_TOKEN: ${{ secrets.NPM_REGISTRY_TOKEN }} run: | - npx lerna exec --ignore @nuxeo/nuxeo-elements-storybook -- npm publish --@nuxeo:registry=https://registry.npmjs.org/ --access public + npx ${{ env.LERNA }} exec --ignore @nuxeo/nuxeo-elements-storybook -- npm publish --@nuxeo:registry=https://registry.npmjs.org/ --access public - uses: actions/checkout@v2 with: @@ -98,7 +102,7 @@ jobs: - name: Align ${{ github.event.inputs.referenceBranch }} branch on next version ${{ env.NEW_VERSION }} run: | npm version $NEW_VERSION --no-git-tag-version - npx lerna version $NEW_VERSION --no-push --force-publish --no-git-tag-version --yes + npx ${{ env.LERNA }} version $NEW_VERSION --no-push --force-publish --no-git-tag-version --yes # commit and push git commit -a -m "Update to $NEW_VERSION"