From e6f59e5ad6ef8cf161c8d36856e7289f047ca49f Mon Sep 17 00:00:00 2001 From: Joel Sahleen Date: Sun, 19 Jul 2026 18:54:10 -0600 Subject: [PATCH] chore: update GitHub Actions workflow for verification and release - Refactored the verify-and-release.yml workflow to include type-checking and build steps. - Updated Node.js setup to use .nvmrc for version management and added caching for npm. - Enhanced the release job to ensure a build step is executed before releasing. --- .github/workflows/verify-and-release.yml | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/.github/workflows/verify-and-release.yml b/.github/workflows/verify-and-release.yml index 2321d39..8e7fa19 100644 --- a/.github/workflows/verify-and-release.yml +++ b/.github/workflows/verify-and-release.yml @@ -2,7 +2,7 @@ name: Verify and Release on: push: branches: - - main # or master + - main permissions: contents: read # for checkout @@ -20,12 +20,17 @@ jobs: uses: actions/setup-node@v4 with: node-version-file: .nvmrc + cache: npm - name: Install dependencies run: npm clean-install - name: Verify the integrity of provenance attestations and registry signatures for installed dependencies run: npm audit signatures - - name: Run lint, tests, and other verification + - name: Type-check + run: npx tsc --noEmit + - name: Test run: npm test + - name: Build + run: npm run build release: name: Release @@ -44,12 +49,16 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v4 with: - node-version: "lts/*" + node-version-file: .nvmrc + cache: npm + registry-url: https://registry.npmjs.org - name: Install dependencies run: npm clean-install - name: Verify the integrity of provenance attestations and registry signatures for installed dependencies run: npm audit signatures + - name: Build + run: npm run build - name: Release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: npx semantic-release # <- The Run Commnand \ No newline at end of file + run: npx semantic-release