Skip to content

chore(npm): update dependency typescript to v7 #5702

chore(npm): update dependency typescript to v7

chore(npm): update dependency typescript to v7 #5702

Workflow file for this run

on:
push:
branches:
- main
- develop
pull_request: {}
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Setup pnpm
uses: pnpm/action-setup@0977fd99725f1db4007ccb2928dbb4e90d06cc86 # v6.0.10
with:
package_json_file: "package.json"
- name: Setup Node.js
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version-file: ".node-version"
cache: "pnpm"
- run: pnpm install
- run: pnpm lint
test:
name: Test
runs-on: ${{ matrix.os }}
strategy:
matrix:
node: ["22", "24", "26"]
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Setup pnpm
uses: pnpm/action-setup@0977fd99725f1db4007ccb2928dbb4e90d06cc86 # v6.0.10
with:
package_json_file: "package.json"
- name: Setup Node.js
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: ${{ matrix.node }}
cache: "pnpm"
- run: pnpm install
- run: pnpm test
passed:
name: All CI passed
runs-on: ubuntu-latest
needs:
- lint
- test
if: always()
steps:
- uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
env:
RESULT_JSON: ${{ toJSON(needs) }}
with:
script: |
const result = JSON.parse(process.env.RESULT_JSON);
const passed = Object.values(result).every(({ result }) => result === 'success');
if (!passed) process.exit(1);
release:
name: Release
if: github.ref == 'refs/heads/main'
needs:
- passed
runs-on: ubuntu-latest
concurrency:
group: release
cancel-in-progress: false
permissions:
contents: read
id-token: write
steps:
- uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
id: app-token
with:
app-id: Iv23liuADjK7bhvAlWZw
private-key: ${{ secrets.RELEASE_BOT_PRIVATE_KEY }}
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
token: ${{ steps.app-token.outputs.token }}
fetch-depth: 0
- name: Configure Git
run: |
git config user.name 'github-actions[bot]'
git config user.email '41898282+github-actions[bot]@users.noreply.github.com'
- name: Setup pnpm
uses: pnpm/action-setup@0977fd99725f1db4007ccb2928dbb4e90d06cc86 # v6.0.10
with:
package_json_file: "package.json"
- name: Setup Node.js
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: 'lts/*'
registry-url: 'https://registry.npmjs.org'
cache: "pnpm"
- run: pnpm install
- run: pnpm build
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RELEASE_GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
run: pnpm run release