From 6512083707a55a3c7eceacdc98094b7fb2c5cd53 Mon Sep 17 00:00:00 2001 From: Adarsh Madrecha Date: Tue, 19 Mar 2024 11:19:26 +0530 Subject: [PATCH] added npm publish workflow --- .github/workflow/npmpublish.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflow/npmpublish.yaml diff --git a/.github/workflow/npmpublish.yaml b/.github/workflow/npmpublish.yaml new file mode 100644 index 0000000..546a3d8 --- /dev/null +++ b/.github/workflow/npmpublish.yaml @@ -0,0 +1,19 @@ +name: "publish npm" + +on: workflow_dispatch + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@v2 + - name: node + uses: actions/setup-node@v2 + with: + node-version: 20 + registry-url: https://registry.npmjs.org + - name: publish + run: npm publish --access public + env: + NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_NOKEN_PAPAUNPARSE}} \ No newline at end of file