Skip to content

chore(npm): update dependency typescript to v5.5.2 (#1053) #1689

chore(npm): update dependency typescript to v5.5.2 (#1053)

chore(npm): update dependency typescript to v5.5.2 (#1053) #1689

Workflow file for this run

on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0
with:
package_json_file: package.json
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version-file: .node-version
cache: pnpm
- run: pnpm install
- run: pnpm lint
test:
name: Test
runs-on: ${{ matrix.os }}
strategy:
matrix:
node: ["18", "20"]
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0
with:
package_json_file: package.json
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
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@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
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 package
if: github.ref == 'refs/heads/main'
needs:
- passed
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
ssh-key: ${{ secrets.DEPLOY_GIT_SSH_PRIVATE_KEY }}
- uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0
with:
package_json_file: package.json
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version-file: .node-version
cache: pnpm
- run: pnpm install
- run: pnpm build
- run: pnpm run semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}