From 934fbd4c19ea181569108b92a38771aa331bb65a Mon Sep 17 00:00:00 2001 From: Diego Resendez Date: Sun, 2 Aug 2026 21:03:54 -0500 Subject: [PATCH] ci: gate releases on clean dependency audits Signed-off-by: Diego Resendez --- .github/workflows/ci.yml | 7 +++++++ .github/workflows/release.yml | 1 + 2 files changed, 8 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6ce8237..16f749c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,9 +13,16 @@ jobs: with: node-version: '18' - run: npm ci + - run: npm audit - run: npm run lint - run: npm run format:check - run: npm run complexity:check - run: npm run typecheck - run: npm test - run: npm run build + - uses: actions/setup-node@v4 + with: + node-version: '22.12' + - run: npm ci --prefix website + - run: npm audit --prefix website + - run: npm run docs:build diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index acd4e8d..e43dc89 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,6 +23,7 @@ jobs: registry-url: 'https://registry.npmjs.org' - run: npm install -g npm@latest # npm >= 11.5.1 is required for OIDC trusted publishing - run: npm ci + - run: npm audit # `npm publish` runs prepublishOnly (lint + complexity + typecheck + test + build) first. # No NODE_AUTH_TOKEN — npm exchanges the OIDC id-token for a short-lived publish token. # A prerelease (26.7.0-beta.N) publishes under its channel tag (beta/alpha/rc) so `latest`