From 2e09ec9cc1caaeeb6a64ef3a20589854402900c9 Mon Sep 17 00:00:00 2001 From: Ritik Raj Date: Wed, 27 Dec 2023 02:43:02 +0530 Subject: [PATCH] added workflow --- .github/workflows/publish.yaml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/publish.yaml diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml new file mode 100644 index 0000000..48a9655 --- /dev/null +++ b/.github/workflows/publish.yaml @@ -0,0 +1,23 @@ +name: "publish" + +on: + push: + branches: + - main + +jobs: + release: + name: publish + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@v4 + - name: node + uses: actions/setup-node@v4 + with: + node-version: ">=14.0.0" + registry-url: https://registry.npmjs.org + - name: publish + run: npm publish --access public + env: + NODE_AUTH_TOKEN: ${{secrets.NPM_STAR_TOKEN}}