Update Carbon and gatsby-theme-carbon deps #8
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 Carbon and gatsby-theme-carbon deps | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
on: | |
workflow_dispatch: | |
jobs: | |
carbon-website: | |
runs-on: ubuntu-latest | |
timeout-minutes: 15 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
repository: carbon-design-system/carbon-website | |
ref: main | |
- name: Use Node.js 18.x | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18.x' | |
registry-url: 'https://registry.npmjs.org' | |
- name: Update dependencies | |
run: | | |
yarn upgrade \ | |
@carbon/react@next \ | |
@carbon/elements@next \ | |
@carbon/pictograms@next \ | |
@carbon/pictograms-react@next \ | |
@carbon/icons@next \ | |
@carbon/icons-react@next \ | |
gatsby-theme-carbon@latest \ | |
- name: Generate token | |
uses: tibdex/github-app-token@v1 | |
id: generate_token | |
with: | |
app_id: ${{ secrets.APP_ID }} | |
private_key: ${{ secrets.APP_PRIVATE_KEY }} | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v5 | |
with: | |
branch: 'release/update-carbon-deps' | |
commit-message: 'chore(release): update carbon and gatsby-theme-carbon deps' | |
delete-branch: true | |
title: 'chore(release): update carbon and gatsby-theme-carbon deps' | |
token: ${{ steps.generate_token.outputs.token }} | |
body: | | |
Automated pull request to update Carbon and gatsby-theme-carbon on the website | |
**Checklist** | |
- [ ] Verify package version bumps are accurate | |
- [ ] Verify CI passes as expected | |
- [ ] Verify no regressions on the website in the deploy preview |