Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ELEMENTS-1677: build failed while generating a snapshot for elements project #817

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -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: '[email protected]'

on:
push:
branches:
Expand Down Expand Up @@ -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: |
Expand All @@ -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
7 changes: 6 additions & 1 deletion .github/workflows/preview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: '[email protected]'

jobs:
storybook:
name: Storybook
Expand Down Expand Up @@ -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
Expand Down
17 changes: 11 additions & 6 deletions .github/workflows/promote.yaml
Original file line number Diff line number Diff line change
@@ -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: '[email protected]'

on:
workflow_dispatch:
inputs:
Expand Down Expand Up @@ -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: |
Expand All @@ -60,29 +65,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 +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"
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/storybook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: '[email protected]'

jobs:
storybook:
runs-on: ubuntu-latest
Expand All @@ -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
Expand Down
Loading