Skip to content

chore(package): update cspell to version 8.16.0 (#823) #1659

chore(package): update cspell to version 8.16.0 (#823)

chore(package): update cspell to version 8.16.0 (#823) #1659

name: Typescript Library Starter
on: [push]
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
jobs:
dependencies:
name: πŸ“¦ Dependencies
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: package.json
cache: "npm"
- run: npm ci
lint:
name: πŸ”¬ Lint & Format
runs-on: ubuntu-latest
needs: [dependencies]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: package.json
cache: "npm"
- run: npm ci
- name: πŸ”¬ Lint & Format
run: node --run lint:check
audit:
name: πŸ›‘οΈ Audit
runs-on: ubuntu-latest
needs: [dependencies]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: package.json
cache: "npm"
- name: πŸ›‘οΈ Audit
run: npm audit --audit-level=high
spell:
name: 🈸 Spellcheck
runs-on: ubuntu-latest
needs: [dependencies]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: package.json
cache: "npm"
- run: npm ci
- name: 🈸 Spellcheck
run: node --run spell:check
type:
name: Κ¦ Typecheck
runs-on: ubuntu-latest
needs: [dependencies]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: package.json
cache: "npm"
- run: npm ci
- name: Κ¦ Typecheck
run: node --run type:check
test:
name: ⚑ Tests
runs-on: ubuntu-latest
needs: [dependencies]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: package.json
cache: "npm"
- run: npm ci
- name: ⚑ Tests
run: node --run test:coverage
test-setup:
name: ⚑ Setup tests
runs-on: ubuntu-latest
needs: [dependencies]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: package.json
cache: "npm"
- run: npm ci
- name: ⚑ Tests
run: node --run test:setup
build-and-release:
name: πŸš€ Build & release
needs: [lint, audit, spell, type, test, test-setup]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: package.json
cache: "npm"
- run: npm ci
- name: πŸ”¨ Build
run: node --run build
- name: πŸš€ Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: node --run semantic-release