From 78aea896a2b5e5ee7f7c1074972c71a58ae1fd31 Mon Sep 17 00:00:00 2001 From: Sairaj Jawalikar <65067289+s41r4j@users.noreply.github.com> Date: Fri, 20 Jun 2025 00:02:29 +0530 Subject: [PATCH] Update release.yml --- .github/workflows/release.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d838ca1..b1a7104 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,7 +5,7 @@ on: branches: [main] jobs: - build: + build-and-publish: runs-on: ubuntu-latest steps: @@ -17,9 +17,15 @@ jobs: with: node-version: 20 cache: 'npm' + registry-url: 'https://registry.npmjs.org/' - name: Install dependencies run: npm ci - name: Run tests run: npm test + + - name: Publish to npm + run: npm publish + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }}