-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ELEMENTS-1677: build failed while generating a snapshot for elements …
…project
- Loading branch information
1 parent
02721f0
commit c5f42f4
Showing
3 changed files
with
16 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,9 @@ on: | |
# Manually trigger the workflow | ||
workflow_dispatch: | ||
|
||
env: | ||
LERNA: [email protected] | ||
|
||
jobs: | ||
lint: | ||
uses: nuxeo/nuxeo-elements/.github/workflows/[email protected] | ||
|
@@ -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 ${{ env.LERNA }} version $VERSION --no-push --force-publish --no-git-tag-version --yes | ||
- name: Tag | ||
run: | | ||
|
@@ -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 ${{ env.LERNA }} exec --ignore @nuxeo/nuxeo-elements-storybook -- npm publish --tag SNAPSHOT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,9 @@ on: | |
description: 'Run the workflow without pushing code or publishing artifacts' | ||
type: boolean | ||
required: false | ||
|
||
env: | ||
LERNA: [email protected] | ||
|
||
jobs: | ||
promote: | ||
runs-on: ubuntu-latest | ||
|
@@ -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 ${{ env.LERNA }} version $VERSION --no-push --force-publish --no-git-tag-version --yes | ||
- name: Tag Nuxeo Elements v${{ env.VERSION }} | ||
run: | | ||
|
@@ -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 ${{ 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 | ||
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 ${{ 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 +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 ${{ 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" | ||
|