Skip to content

1.4.4

1.4.4 #131

Workflow file for this run

name: CI
on:
push:
branches: [main]
tags: ['v*']
paths-ignore:
- '.gitignore'
- '.githooks/**'
- '.mdfmtignore'
- 'README.md'
- 'SECURITY.md'
pull_request:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
env:
CHECK_BASE_REF: origin/main
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version-file: .node-version
cache: 'npm'
cache-dependency-path: package-lock.json
- run: npm ci
- run: npm run test:structural
- run: node --test test/unit/*.test.js
- run: node test/integration/cli.test.js
- run: npm run format:check
- run: bash scripts/staged-install-verify.sh
- run: npm audit --audit-level=high
publish:
needs: test
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version-file: .node-version
registry-url: 'https://registry.npmjs.org'
cache: 'npm'
cache-dependency-path: package-lock.json
- run: npm ci
- run: npm publish --provenance
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}