Skip to content
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

ci: fix examples update workflow #9864

Open
wants to merge 23 commits into
base: main
Choose a base branch
from
17 changes: 14 additions & 3 deletions .github/workflows/update-examples-on-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,26 @@ 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
# Forcibly upgrade our available version of corepack.
# The bundled version in node 16 has known issues.
# Prepends the npm bin dir so that it is always first.
anthonyshew marked this conversation as resolved.
Show resolved Hide resolved
run: |
npm install --force --global corepack@latest
npm config get prefix >> $GITHUB_PATH
- name: Run upgrade script
run: bash ./scripts/update-examples-dep.sh
run: bash scripts/update-examples-dep.sh
- name: Create pull request
uses: thomaseizinger/create-pull-request@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
head: ${{ needs.stage.outputs.stage-branch }}
head: ${{ github.ref }}
base: main
title: "release(turborepo): update examples to latest(${{ steps.getVersion.outputs.version }})"
Loading