diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index b34ab48de..de9c7d04b 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -1,5 +1,10 @@ name: Build +## limiting lerna version as latest is not compatible with node 14. +## We will revert this once node is upragded. +env: + LERNA: 'lerna@6.6.2' + on: push: branches: @@ -55,7 +60,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 $LERNA version $VERSION --no-push --force-publish --no-git-tag-version --yes - name: Tag run: | @@ -66,4 +71,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 $LERNA exec --ignore @nuxeo/nuxeo-elements-storybook -- npm publish --tag SNAPSHOT diff --git a/.github/workflows/preview.yaml b/.github/workflows/preview.yaml index 06e1d919e..ab803e1f9 100644 --- a/.github/workflows/preview.yaml +++ b/.github/workflows/preview.yaml @@ -12,6 +12,11 @@ env: GKE_CLUSTER: jx-prod GKE_ZONE: us-east1-b + ## limiting lerna version as latest is not compatible with node 14. + ## We will revert this once node is upragded. + env: + LERNA: 'lerna@6.6.2' + jobs: storybook: name: Storybook @@ -40,7 +45,7 @@ jobs: npm run bootstrap - name: Run analysis - run: npx lerna run analysis --parallel + run: npx $LERNA run analysis --parallel - name: Build storybook working-directory: ./storybook diff --git a/.github/workflows/promote.yaml b/.github/workflows/promote.yaml index 1dc59f2c5..948293e5b 100644 --- a/.github/workflows/promote.yaml +++ b/.github/workflows/promote.yaml @@ -1,5 +1,10 @@ name: Promote release +## limiting lerna version as latest is not compatible with node 14. +## We will revert this once node is upragded. +env: + LERNA: 'lerna@6.6.2' + on: workflow_dispatch: inputs: @@ -36,7 +41,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 $LERNA version $VERSION --no-push --force-publish --no-git-tag-version --yes - name: Tag Nuxeo Elements v${{ env.VERSION }} run: | @@ -60,21 +65,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 $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 $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 $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 +87,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 $LERNA exec --ignore @nuxeo/nuxeo-elements-storybook -- npm publish --@nuxeo:registry=https://registry.npmjs.org/ --access public - uses: actions/checkout@v2 with: @@ -98,7 +103,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 $LERNA version $NEW_VERSION --no-push --force-publish --no-git-tag-version --yes # commit and push git commit -a -m "Update to $NEW_VERSION" diff --git a/.github/workflows/storybook.yaml b/.github/workflows/storybook.yaml index 7e7b36013..23726c312 100644 --- a/.github/workflows/storybook.yaml +++ b/.github/workflows/storybook.yaml @@ -19,6 +19,10 @@ on: env: BRANCH_NAME: ${{ github.head_ref || inputs.branch || 'maintenance-3.0.x' }} + ## limiting lerna version as latest is not compatible with node 14. + ## We will revert this once node is upragded. + LERNA: 'lerna@6.6.2' + jobs: storybook: runs-on: ubuntu-latest @@ -41,7 +45,7 @@ jobs: npm run bootstrap - name: Run analysis - run: npx lerna run analysis --parallel + run: npx $LERNA run analysis --parallel - name: Build storybook working-directory: storybook