From 718911014df9726fad2512c34aa3790818eb8ae8 Mon Sep 17 00:00:00 2001 From: Kathiravankrish Date: Thu, 20 Jun 2024 17:19:00 +0530 Subject: [PATCH] push --- .github/workflows/test.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 00000000..8e1c41a0 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,22 @@ +name: Deploy to npm +on: + push: + branches: [ 1068-test ] +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: '21.x' # Update this to the Node.js version you want to use + registry-url: 'https://registry.npmjs.org' + - name: Install dependencies + run: | + npm install + npm run build + - name: Publish + run: npm publish + env: + NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} # Ensure NPM_TOKEN is set in your repository secrets \ No newline at end of file