Skip to content

Commit

Permalink
ELEMENTS-1677: build failed while generating a snapshot for elements …
Browse files Browse the repository at this point in the history
…project
  • Loading branch information
poonamyadav252 committed Oct 3, 2023
1 parent 02721f0 commit 99ab7ff
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cross-repo.yaml
Expand Up @@ -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
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/main.yaml
Expand Up @@ -8,6 +8,9 @@ on:
# Manually trigger the workflow
workflow_dispatch:

env:
LERNA: lerna@6.6.2

jobs:
lint:
uses: nuxeo/nuxeo-elements/.github/workflows/lint.yaml@maintenance-3.0.x
Expand Down Expand Up @@ -55,7 +58,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: |
Expand All @@ -66,4 +69,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
14 changes: 8 additions & 6 deletions .github/workflows/promote.yaml
Expand Up @@ -14,6 +14,8 @@ on:
description: 'Run the workflow without pushing code or publishing artifacts'
type: boolean
required: false
env:
$LERNA: $LERNA@6.6.2

jobs:
promote:
Expand All @@ -36,7 +38,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: |
Expand All @@ -60,29 +62,29 @@ 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
if: ${{ github.event.inputs.dryRun == 'false' }}
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:
Expand All @@ -98,7 +100,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"
Expand Down

0 comments on commit 99ab7ff

Please sign in to comment.