Skip to content

Commit

Permalink
Merge branch 'canary' into karim/trailing-slash-canonical-urls
Browse files Browse the repository at this point in the history
  • Loading branch information
kshehadeh committed Jun 10, 2024
2 parents 9826ad4 + 6cad923 commit ac5d045
Show file tree
Hide file tree
Showing 69 changed files with 644 additions and 744 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
# canary next-swc binaries in the monorepo
NEXT_SKIP_NATIVE_POSTINSTALL: 1
outputs:
isRelease: ${{ github.event_name != 'workflow_dispatch' && steps.check-release.outputs.IS_RELEASE }}
isRelease: ${{ steps.check-release.outputs.IS_RELEASE }}
steps:
- name: Setup node
uses: actions/setup-node@v4
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/trigger_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ on:
- minor
- major

force:
description: create a new release even if there are no new commits
default: false
type: boolean

secrets:
RELEASE_BOT_GITHUB_TOKEN:
required: true
Expand Down Expand Up @@ -66,7 +71,7 @@ jobs:
run: echo "LATEST_COMMIT=$(git rev-parse HEAD)" >> $GITHUB_ENV

- name: Check if new commits since last tag
if: ${{ github.event.inputs.releaseType != 'stable' }}
if: ${{ github.event.inputs.releaseType != 'stable' && github.event.inputs.force != true }}
run: |
if [ "$LATEST_TAG_COMMIT" = "$LATEST_COMMIT" ]; then
echo "No new commits. Exiting..."
Expand Down
Loading

0 comments on commit ac5d045

Please sign in to comment.