Skip to content

Commit

Permalink
ELEMENTS-1432: treat dryRun as string in promote workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
richardsd committed Dec 15, 2021
1 parent a1f45dc commit 0d1c8e4
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/promote.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ jobs:
git commit -a -m "Release $VERSION"
git tag -a v$VERSION -m "Release $VERSION"
- if: ${{ !github.event.inputs.dryRun }}
- if: ${{ github.event.inputs.dryRun == 'false' }}
run: git push origin v$VERSION

- name: Create Github release v${{ env.VERSION }}
if: ${{ !github.event.inputs.dryRun }}
if: ${{ github.event.inputs.dryRun == 'false' }}
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -56,29 +56,29 @@ jobs:
release_name: Release ${{ env.VERSION }}

- name: Publish to https://packages.nuxeo.com/repository/npm-public/ (dry run)
if: ${{ github.event.inputs.dryRun }}
if: ${{ github.event.inputs.dryRun == 'true' }}
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
- name: Publish to https://packages.nuxeo.com/repository/npm-public/
if: ${{ !github.event.inputs.dryRun }}
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/
- name: Publish to https://registry.npmjs.org (dry run)
if: ${{ github.event.inputs.dryRun }}
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
- name: Publish to https://registry.npmjs.org
continue-on-error: true
if: ${{ !github.event.inputs.dryRun }}
if: ${{ github.event.inputs.dryRun == 'false' }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_REGISTRY_TOKEN }}
run: |
Expand All @@ -103,5 +103,5 @@ jobs:
# commit and push
git commit -a -m "Update to $NEW_VERSION"
- if: ${{ !github.event.inputs.dryRun }}
- if: ${{ github.event.inputs.dryRun == 'false' }}
run: git push origin ${{ github.event.inputs.referenceBranch }}

0 comments on commit 0d1c8e4

Please sign in to comment.