Upgrade swc_core to 47.0.2 for @swc/core 1.15.x compatibility #16
This file contains hidden or 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: Changeset Bot | |
| on: | |
| pull_request_target: | |
| permissions: | |
| pull-requests: write | |
| issues: write | |
| jobs: | |
| check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version-file: .nvmrc | |
| - name: Check for changeset | |
| uses: actions/github-script@v6 | |
| with: | |
| script: | | |
| const { data: files } = await github.rest.pulls.listFiles({ | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| pull_number: context.issue.number, | |
| }); | |
| const hasChangeset = files.some(file => file.filename.startsWith('.changeset/')); | |
| if (!hasChangeset) { | |
| await github.rest.issues.createComment({ | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| issue_number: context.issue.number, | |
| body: 'This pull request is missing a changeset. Please add one by running `npx changeset`.' | |
| }); | |
| } |