Skip to content

build(deps): bump @types/node from 22.9.3 to 22.10.1 in /ts-model-api #1865

build(deps): bump @types/node from 22.9.3 to 22.10.1 in /ts-model-api

build(deps): bump @types/node from 22.9.3 to 22.10.1 in /ts-model-api #1865

name: Dry-Run Release
on:
pull_request:
jobs:
lint-commits:
name: Lint PR commits
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
# Use this action to run commitlint because pre-commit does not run it in CI.
# pre-commit probably does not run commitlint in CI because pre-commit can only run it in the `commit-msg` stage.
- uses: wagoid/commitlint-github-action@v6
test-release:
name: Dry-run semantic-release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Checkout branch
# Pretend to semantic-release that the PR result is eligible for
# building releases because --dry-run still filters for configured
# branches.
run: git checkout -b main
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Cache Node packages
uses: actions/cache@v4
with:
path: node_modules
key: release-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
- name: Install dependencies
run: npm ci
- name: Dry-run release
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
# We need to convince semantic-release to not pick up some
# configuration from the CI environment by removing the variable that
# is used for CI detection.
run: unset GITHUB_ACTIONS && npx semantic-release --dry-run --ci false