这是indexloc提供的服务,不要输入任何密码
Skip to content

release(turborepo): update examples to latest #9866

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

Closed
wants to merge 24 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 35 additions & 4 deletions .github/workflows/update-examples-on-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,46 @@ on:
jobs:
update-examples-pr:
name: "Update examples PR"
needs: [stage, npm-publish]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: 20

- name: Upgrade corepack
shell: bash
run: |
npm install --force --global corepack@latest
npm config get prefix >> $GITHUB_PATH

- name: Configure git
run: |
git config --global user.name 'Turbobot'
git config --global user.email 'turbobot@vercel.com'

- name: Make branch
id: branch
run: |
git checkout -b post-release-bump-examples
echo "STAGE_BRANCH=$(git branch --show-current)" >> $GITHUB_OUTPUT

- name: Run upgrade script
run: bash ./scripts/update-examples-dep.sh
run: bash scripts/update-examples-dep.sh

- name: Commit and push
run: |
git commit -am "release(turborepo): update examples to latest"
git push origin ${{ steps.branch.outputs.STAGE_BRANCH }}

- name: Create pull request
id: pr
uses: thomaseizinger/create-pull-request@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
head: ${{ needs.stage.outputs.stage-branch }}
head: ${{ steps.branch.outputs.STAGE_BRANCH }}
base: main
title: "release(turborepo): update examples to latest(${{ steps.getVersion.outputs.version }})"
title: "release(turborepo): update examples to latest"
- name: PR link
run: echo ${{ steps.pr.outputs.html_url }}
2 changes: 1 addition & 1 deletion examples/basic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"devDependencies": {
"prettier": "^3.4.2",
"turbo": "^2.3.4",
"turbo": "^2.4.0",
"typescript": "5.7.3"
},
"packageManager": "pnpm@9.0.0",
Expand Down
64 changes: 32 additions & 32 deletions examples/basic/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/design-system/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"devDependencies": {
"@changesets/cli": "^2.27.1",
"prettier": "^3.2.5",
"turbo": "^2.0.3"
"turbo": "^2.4.0"
},
"packageManager": "pnpm@8.15.6",
"name": "design-system"
Expand Down
Loading