diff --git a/.github/workflows/trigger-nightly.yml b/.github/workflows/trigger-nightly.yml index 2606f7dd5..df45b1a14 100644 --- a/.github/workflows/trigger-nightly.yml +++ b/.github/workflows/trigger-nightly.yml @@ -18,10 +18,16 @@ jobs: repository: hi-ogawa/vite-plugin-react ref: chore-rsc-nightly token: ${{ secrets.REACT_NIGHTLY_TRIGGER_TOKEN }} - - name: push commit + fetch-depth: 0 + - name: git run: | git config user.name "github-actions[bot]" git config user.email "41898282+github-actions[bot]@users.noreply.github.com" + + git remote add upstream https://github.com/vitejs/vite-plugin-react.git + git fetch upstream main + git merge upstream/main + NIGHTLY_VERSION=$(npm view react dist-tags.canary --json | jq -r 'split("-") | .[-2:] | join("-")') git commit --allow-empty -m "chore: nightly ${NIGHTLY_VERSION}" git push