Skip to content

Upgrade to TypeScript v5.0 and set module{,Resolution} option to Node16 #2842

Upgrade to TypeScript v5.0 and set module{,Resolution} option to Node16

Upgrade to TypeScript v5.0 and set module{,Resolution} option to Node16 #2842

name: 'Check for PR labels that block merging'
on:
pull_request:
types:
- opened
- synchronize
- labeled
- unlabeled
jobs:
ensure-blocking-pr-labels-absent:
runs-on: ubuntu-latest
permissions:
pull-requests: read
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
- name: Install Yarn
run: corepack enable
- name: Restore Yarn cache
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'yarn'
- run: yarn --immutable
- name: Run command
uses: actions/github-script@v7
with:
script: |
if (context.payload.pull_request.labels.some((label) => label.name === 'DO-NOT-MERGE')) {
core.setFailed(
"PR cannot be merged because it contains the label 'DO-NOT-MERGE'."
);
}