From d21929b2ecf113144946129f0f720225e0a61bb5 Mon Sep 17 00:00:00 2001 From: gbockus-sf <76090802+gbockus-sf@users.noreply.github.com> Date: Tue, 15 Nov 2022 16:31:58 -0600 Subject: [PATCH] ci: simplify onRelease GHA (#526) * ci: simplify onRelease GHA * ci: remove the token for now as it is not needed for an npm release --- .github/workflows/onRelease.yml | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/.github/workflows/onRelease.yml b/.github/workflows/onRelease.yml index 9697b0ae..7b94cb6b 100644 --- a/.github/workflows/onRelease.yml +++ b/.github/workflows/onRelease.yml @@ -1,9 +1,8 @@ -name: release - +name: npm release +# when a github release happens, publish an npm package, on: - push: - tags: - - v* + release: + types: [released] jobs: publish: @@ -11,12 +10,7 @@ jobs: container: image: node:lts steps: - - uses: actions/checkout@v2 - npm: - runs-on: ubuntu-latest - container: - image: node:lts - steps: + - uses: actions/checkout@v3 - name: Set .npmrc run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc - run: yarn publish-lsp