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
rahuljain-dev committed Oct 3, 2023
1 parent 02721f0 commit ead266a
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,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@6.62 version $VERSION --no-push --force-publish --no-git-tag-version --yes
- name: Tag
run: |
Expand All @@ -66,4 +66,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@6.62 exec --ignore @nuxeo/nuxeo-elements-storybook -- npm publish --tag SNAPSHOT
2 changes: 1 addition & 1 deletion .github/workflows/preview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
npm run bootstrap
- name: Run analysis
run: npx lerna run analysis --parallel
run: npx lerna@6.62 run analysis --parallel

- name: Build storybook
working-directory: ./storybook
Expand Down
16 changes: 10 additions & 6 deletions .github/workflows/promote.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: Promote release

env:
lerna_version: '[email protected]'

on:
workflow_dispatch:
inputs:
Expand Down Expand Up @@ -36,7 +39,8 @@ 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
echo $lerna_version
npx $lerna_version version $VERSION --no-push --force-publish --no-git-tag-version --yes
- name: Tag Nuxeo Elements v${{ env.VERSION }}
run: |
Expand All @@ -60,29 +64,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_version 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_version 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_version 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_version 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 +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 $lerna_version 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
2 changes: 1 addition & 1 deletion .github/workflows/storybook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
npm run bootstrap
- name: Run analysis
run: npx lerna run analysis --parallel
run: npx lerna@6.62 run analysis --parallel

- name: Build storybook
working-directory: storybook
Expand Down

0 comments on commit ead266a

Please sign in to comment.