From 999eec2ff7e2f7731d62b588d7c0f8584befd41c Mon Sep 17 00:00:00 2001 From: Matt Busche Date: Mon, 15 Apr 2024 21:31:04 -0500 Subject: [PATCH] publish npm package on release --- .github/workflows/npm-publish.yml | 17 +++++++++++++++++ 1 file changed, 17 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..8db3cc7 --- /dev/null +++ b/.github/workflows/npm-publish.yml @@ -0,0 +1,17 @@ +name: Publish Package to npmjs +on: + release: + types: [published] +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: '20.x' + registry-url: 'https://registry.npmjs.org' + - run: npm ci + - run: npm publish + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}