Skip to content

feat(config): tsx, bundler resolution, verbatimModuleSyntax, noUncheckedIndexedAccess #153

feat(config): tsx, bundler resolution, verbatimModuleSyntax, noUncheckedIndexedAccess

feat(config): tsx, bundler resolution, verbatimModuleSyntax, noUncheckedIndexedAccess #153

name: Changesets Check
on:
pull_request:
permissions: {}
jobs:
check:
name: Changesets Check
if: github.event.pull_request.title != 'Version Packages'
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
# Only PRs touching a releasable package need a changeset. Repo-level
# changes (workflows, docs, tooling) roll up to the private root
# package.json, which is never released.
- name: Detect changed packages
id: changed-packages
uses: smartcontractkit/.github/actions/changed-roots@changed-roots/1.0.0
with:
github-token: ${{ github.token }}
root-file: package.json
# Mirrors the pnpm workspace globs. The repo root is excluded
# implicitly since it never matches these patterns.
root-patterns: |
actions/**
libs/**
apps/**
workflows/**
!actions/invoke-gati-v2/**
!actions/signed-commits/__fixtures__/**
!**/node_modules/**
- name: Check for changeset
if: steps.changed-packages.outputs.roots-csv != ''
uses: smartcontractkit/.github/actions/cicd-changesets-check@cicd-changesets-check/0.1.0
with:
token: ${{ github.token }}
- name: Skip changeset check
if: steps.changed-packages.outputs.roots-csv == ''
run: |
echo "No releasable packages were modified - a changeset is not required." \
>> "$GITHUB_STEP_SUMMARY"
# Runs the same `changeset version` that cd-release runs on push to main, so
# an invalid changeset (e.g. one naming a non-workspace package) fails here
# instead of blocking every release after it merges.
validate:
name: Changesets Validate
if: github.event.pull_request.title != 'Version Packages'
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0
persist-credentials: false
- name: Setup pnpm
uses: ./actions/setup-nodejs
with:
pnpm-version: "^12.0.0"
- name: Dry-run changeset version
env:
# @changesets/changelog-github looks up PR metadata for each changeset.
GITHUB_TOKEN: ${{ github.token }}
run: pnpm changeset version