From 194061246f6e89ccbd22e09d5a9d4946be98c455 Mon Sep 17 00:00:00 2001 From: Anshul Raj Verma Date: Thu, 27 Feb 2025 16:24:12 +0530 Subject: [PATCH] Add .github/workflows/npm-publish.yaml Need to manually publish from Actions tab. --- .github/workflows/npm-publish.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/npm-publish.yaml diff --git a/.github/workflows/npm-publish.yaml b/.github/workflows/npm-publish.yaml new file mode 100644 index 0000000..29a8631 --- /dev/null +++ b/.github/workflows/npm-publish.yaml @@ -0,0 +1,20 @@ +name: NPM Package Publish + +on: + workflow_dispatch: + +jobs: + publish-npm: + runs-on: ubuntu-latest + permissions: + contents: read + id-token: write + steps: + - uses: actions/checkout@v4 + - uses: oven-sh/setup-bun@v2 + - run: bun install + - run: bun run build + - name: Publish to NPM + run: npm publish --provenance --access public + env: + NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}