diff --git a/workflow-templates/command-compile.yml b/workflow-templates/command-compile.yml index 934f54bb..18af0c5f 100644 --- a/workflow-templates/command-compile.yml +++ b/workflow-templates/command-compile.yml @@ -15,6 +15,7 @@ jobs: arg1: ${{ steps.command.outputs.arg1 }} arg2: ${{ steps.command.outputs.arg2 }} head_ref: ${{ steps.comment-branch.outputs.head_ref }} + base_ref: ${{ steps.comment-branch.outputs.base_ref }} steps: - name: Check actor permission @@ -69,8 +70,8 @@ jobs: uses: skjnldsv/read-package-engines-version-actions@v1.2 id: package-engines-versions with: - fallbackNode: '^12' - fallbackNpm: '^6' + fallbackNode: '^20' + fallbackNpm: '^10' - name: Set up node ${{ steps.package-engines-versions.outputs.nodeVersion }} uses: actions/setup-node@v3 @@ -86,10 +87,9 @@ jobs: npm ci npm run build --if-present - - name: Rebase + - name: Rebase to ${{ needs.init.outputs.base_ref }} if: ${{ contains(needs.init.outputs.arg1, 'rebase') }} - run: | - git rebase master + run: git rebase ${{ needs.init.outputs.base_ref }} - name: Commit and push default if: ${{ !contains(needs.init.outputs.arg1, 'fixup') && !contains(needs.init.outputs.arg1, 'amend') }}