Skip to content

chore(deps): update crate-ci/typos action to v1.27.2 #94

chore(deps): update crate-ci/typos action to v1.27.2

chore(deps): update crate-ci/typos action to v1.27.2 #94

Workflow file for this run

---
name: CI
env:
CI: true
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
typo:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
name: Spell check
steps:
- name: Checkout codes
uses: actions/checkout@v4
- name: Spell check
uses: crate-ci/typos@v1.27.2
lint:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [18]
os: [ubuntu-latest]
name: Lint on Node.js ${{ matrix.node-version }}
steps:
- name: Checkout codes
uses: actions/checkout@v4
- name: Enable corepack
run: corepack enable
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Linting
run: npm run lint
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [18]
os: [ubuntu-latest]
name: Build on Node.js ${{ matrix.node-version }}
steps:
- name: Checkout codes
uses: actions/checkout@v4
- name: Enable corepack
run: corepack enable
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Building
run: npm run build
test:
needs:
- build
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [18, 20, 22]
os: [ubuntu-latest]
name: Test on Node.js ${{ matrix.node-version }}
steps:
- name: Checkout codes
uses: actions/checkout@v4
- name: Enable corepack
run: corepack enable
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Testing
run: npm test
nightly-release:
needs:
- typo
- lint
- build
- test
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [18]
os: [ubuntu-latest]
name: Nightly release
steps:
- name: Checkout codes
uses: actions/checkout@v4
- name: Enable corepack
run: corepack enable
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Restore dist cache
uses: actions/cache@v4
with:
path: dist
key: ${{ matrix.os }}-node-v${{ matrix.node-version }}-${{ github.sha }}
- name: Release Nightly
if: |
github.event_name == 'push' &&
!startsWith(github.event.head_commit.message, '[skip-release]') &&
!startsWith(github.event.head_commit.message, 'chore') &&
!startsWith(github.event.head_commit.message, 'release') &&
!startsWith(github.event.head_commit.message, 'docs')
run: ./scripts/release.sh
env:
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
NIGHTLY_RELEASE: 'true'