From 687092d9f05075ab01f8af0cb967e51c5a432526 Mon Sep 17 00:00:00 2001 From: mborne Date: Tue, 11 Jun 2024 00:50:18 +0200 Subject: [PATCH] chore(ci): add npm publish action --- .github/workflows/npm-publish.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/npm-publish.yml diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml new file mode 100644 index 0000000..8bb4db3 --- /dev/null +++ b/.github/workflows/npm-publish.yml @@ -0,0 +1,19 @@ +name: Publish package to NPM + +on: + release: + types: [created] + +jobs: + publish-npm: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 20 + registry-url: https://registry.npmjs.org/ + - run: npm install + - run: npm publish --access=public + env: + NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}