From 473b2ba4614847163ad1f6ae7d37304241bb884b Mon Sep 17 00:00:00 2001 From: Sairaj Jawalikar <65067289+s41r4j@users.noreply.github.com> Date: Thu, 19 Jun 2025 23:57:23 +0530 Subject: [PATCH] Create release.yml --- .github/workflows/release.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..d838ca1 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,25 @@ +name: Publish to npm + +on: + push: + branches: [main] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: 20 + cache: 'npm' + + - name: Install dependencies + run: npm ci + + - name: Run tests + run: npm test