Skip to content

Commit

Permalink
add action (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChellappanRajan authored May 18, 2024
1 parent 3c41f16 commit 7b7b7aa
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Publish NPM Package

on:
push:
branches:
- main # or the branch you want to trigger the publish action

jobs:
publish:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '21.7.0' # or the Node.js version you need
registry-url: 'https://registry.npmjs.org/'

- name: Install dependencies
run: npm install

- name: Publish package
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 7b7b7aa

Please sign in to comment.