Update examples to latest #13
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update examples to latest | |
on: | |
workflow_dispatch: | |
jobs: | |
update-examples-pr: | |
name: "Update examples PR" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Upgrade corepack | |
if: ${{ inputs.enable-corepack == 'true' && inputs.node-version == '16' }} | |
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. | |
run: | | |
npm install --force --global corepack@latest | |
npm config get prefix >> $GITHUB_PATH | |
- name: Run upgrade script | |
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 }} | |
base: main | |
title: "release(turborepo): update examples to latest(${{ steps.getVersion.outputs.version }})" |