-
Notifications
You must be signed in to change notification settings - Fork 58
chore: revert upgrade publish-v2 workflow to use pnpm #1461
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
Changes from all commits
d7860aa
9f9c7dc
b6eb66f
464afd3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,7 +7,7 @@ on: | |
| type: choice | ||
| description: Release type (release for main branch, prerelease for feature branches) | ||
| required: true | ||
| default: prerelease | ||
| default: release | ||
| options: | ||
| - release | ||
| - prerelease | ||
|
|
@@ -94,7 +94,7 @@ jobs: | |
|
|
||
| # Temporarily disable exit on error to capture output even when command fails | ||
| set +e | ||
| OUTPUT=$(GH_TOKEN=${{ secrets.GH_PUBLISH_TOKEN }} pnpm deploy:version -y --no-private --create-release github 2>&1) | ||
| OUTPUT=$(GH_TOKEN=${{ secrets.GH_PUBLISH_TOKEN }} npm run deploy:version -- -y --no-private --create-release github 2>&1) | ||
| EXIT_CODE=$? | ||
| set -e | ||
|
|
||
|
|
@@ -120,7 +120,7 @@ jobs: | |
| # Publish to NPM | ||
| - name: Publish Release to NPM | ||
| run: | | ||
| GH_TOKEN=${{ secrets.GH_PUBLISH_TOKEN }} pnpm deploy:publish --ignore-scripts | ||
| GH_TOKEN=${{ secrets.GH_PUBLISH_TOKEN }} npm run deploy:publish -- ${{ env.PUBLISH_FROM }} -y --pre-dist-tag beta --loglevel silly | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Undefined PUBLISH_FROM environment variable in deploy commandThe |
||
| env: | ||
| S3_BUCKET_NAME: ${{ secrets.S3_BUCKET_NAME }} | ||
|
|
||
|
|
@@ -174,24 +174,17 @@ jobs: | |
| - name: Dry run pre-release version | ||
| if: ${{ github.event.inputs.releaseType == 'dry-run' }} | ||
| run: | | ||
| GH_TOKEN=${{ secrets.GH_PUBLISH_TOKEN }} pnpm deploy:version:dry-run -y --preid ${{ env.PREID }} | ||
| GH_TOKEN=${{ secrets.GH_PUBLISH_TOKEN }} npm run deploy:version -- -y --no-private --conventional-prerelease --preid ${{ env.PREID }} --allow-branch ${{ steps.determine-branch.outputs.branch }} --no-changelog --no-push --no-git-tag-version | ||
|
|
||
| - name: Pre-release version | ||
| if: ${{ github.event.inputs.releaseType == 'prerelease' }} | ||
| run: | | ||
| GH_TOKEN=${{ secrets.GH_PUBLISH_TOKEN }} pnpm deploy:version -y --no-private --conventional-prerelease --preid ${{ env.PREID }} --allow-branch ${{ steps.determine-branch.outputs.branch }} --create-release github | ||
| GH_TOKEN=${{ secrets.GH_PUBLISH_TOKEN }} npm run deploy:version -- -y --no-private --conventional-prerelease --preid ${{ env.PREID }} --allow-branch ${{ steps.determine-branch.outputs.branch }} --create-release github | ||
|
|
||
| # Use 'from git' option if `lerna version` has already been run | ||
| - name: Publish Pre-release to NPM | ||
| - name: Publish Release to NPM | ||
| if: ${{ github.event.inputs.releaseType == 'prerelease' }} | ||
| run: | | ||
| GH_TOKEN=${{ secrets.GH_PUBLISH_TOKEN }} pnpm deploy:publish --no-git-checks --ignore-scripts --tag ${{ env.PREID }} | ||
| GH_TOKEN=${{ secrets.GH_PUBLISH_TOKEN }} npm run deploy:publish -- from-git -y --ignore-scripts --pre-dist-tag ${{ env.PREID }} | ||
| env: | ||
| S3_BUCKET_NAME: ${{ secrets.S3_BUCKET_NAME }} | ||
|
|
||
| - name: Dry run publish release to NPM | ||
| if: ${{ github.event.inputs.releaseType == 'dry-run' }} | ||
| env: | ||
| DRY_RUN: true | ||
| run: | | ||
| pnpm deploy:publish:dry-run | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
${{ env.PUBLISH_FROM }}on line 123 is undefined in this workflow, sonpm run deploy:publishreceives an empty arg. Consider hard-codingfrom-githere (or definePUBLISH_FROMinenv).