From 77cc7fde6c6ac29318a5cd6fc523b80619796f22 Mon Sep 17 00:00:00 2001 From: Faris Ansari Date: Tue, 25 Mar 2025 20:04:06 +0530 Subject: [PATCH] chore: add publish workflow --- .github/workflows/publish.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..09963d3 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,19 @@ +name: Publish on NPM +on: + push: + branches: [ v2-beta ] + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v3 + with: + node-version: 20 + - run: npm install + - run: npm test + - uses: JS-DevTools/npm-publish@v3 + with: + token: ${{ secrets.NPM_TOKEN }} + tag: next