From dcf41b8bc0f1d43288f9d24b5fd41c30158bab03 Mon Sep 17 00:00:00 2001 From: dworac <117940053+dworac@users.noreply.github.com> Date: Tue, 28 Feb 2023 20:29:04 -0600 Subject: [PATCH] fix: added release to NPM --- .github/workflows/release-please.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 6be3a95..2f65402 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -14,3 +14,17 @@ jobs: with: release-type: node package-name: release-please-action + # The logic below handles the npm publication: + - uses: actions/checkout@v2 + # these if statements ensure that a publication only occurs when + # a new release is created: + if: ${{ steps.release.outputs.release_created }} + - uses: actions/setup-node@v1 + with: + node-version: 16 + registry-url: 'https://registry.npmjs.org' + if: ${{ steps.release.outputs.release_created }} + - run: npm publish + env: + NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} + if: ${{ steps.release.outputs.release_created }}