Update release.yml

This commit is contained in:
Sairaj Jawalikar
2025-06-20 00:02:29 +05:30
committed by GitHub
parent 473b2ba461
commit 78aea896a2
+7 -1
View File
@@ -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 }}