This repository was archived by the owner on Apr 28, 2025. It is now read-only.
build(deps): update node.js to v22 #5898
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [push, pull_request] | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
steps: | |
- name: Checkout Git repository | |
uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '22' | |
cache: 'yarn' | |
- name: Install dependencies with Yarn | |
run: yarn install --immutable | |
- name: Build WASM | |
run: yarn run asbuild | |
- name: Upload compiled TypeScript | |
uses: actions/upload-artifact@v4 | |
with: | |
name: wasm | |
path: wasm | |
- name: Bundle | |
run: yarn run build | |
- name: Upload bundle | |
uses: actions/upload-artifact@v4 | |
with: | |
name: dist | |
path: dist | |
- name: Generate typings | |
run: yarn run types | |
- name: Upload typings | |
uses: actions/upload-artifact@v4 | |
with: | |
name: types | |
path: tsc_types | |
docs: | |
name: Generate docs | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
steps: | |
- name: Checkout Git repository | |
uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '22' | |
cache: 'yarn' | |
- name: Install dependencies with Yarn | |
run: yarn install --immutable | |
- name: Generate docs | |
run: yarn run docs | |
- name: Upload compiled TypeScript | |
uses: actions/upload-artifact@v4 | |
with: | |
name: docs | |
path: docs_out | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
steps: | |
- name: Checkout Git repository | |
uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '22' | |
cache: 'yarn' | |
- name: Install dependencies with Yarn | |
run: yarn install --immutable | |
- name: Lint | |
run: yarn run lint | |
style: | |
name: Check style | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
steps: | |
- name: Checkout Git repository | |
uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '22' | |
cache: 'yarn' | |
- name: Install dependencies with Yarn | |
run: yarn install --immutable | |
- name: Check style | |
run: yarn run style | |
test: | |
name: Run unit tests | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
steps: | |
- name: Checkout Git repository | |
uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '22' | |
cache: 'yarn' | |
- name: Install dependencies with Yarn | |
run: yarn install --immutable | |
- name: Build WASM | |
run: yarn run asbuild | |
- name: Run tests | |
run: yarn run test:coverage | |
- name: Submit test coverage | |
uses: codecov/codecov-action@v4 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: ./coverage/lcov.info | |
fail_ci_if_error: true | |
validate-api: | |
name: Validate API | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
steps: | |
- name: Checkout Git repository | |
uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '22' | |
cache: 'yarn' | |
- name: Install dependencies with Yarn | |
run: yarn install --immutable | |
- name: Generate typings | |
run: yarn run types | |
- name: Validate API | |
run: yarn run validate-api | |
release: | |
name: Release | |
needs: | |
- build | |
- docs | |
- lint | |
- style | |
- test | |
- validate-api | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
steps: | |
- name: Checkout Git repository | |
uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '22' | |
cache: 'yarn' | |
- name: Install dependencies with Yarn | |
run: yarn install --immutable | |
- name: Build WASM | |
run: yarn run asbuild | |
- name: Build TypeScript | |
run: yarn run build | |
- name: Generate typings | |
run: yarn run types | |
- name: Generate .d.ts rollup | |
run: yarn run validate-api | |
- name: Release | |
run: yarn run release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |