From 58a016b72da045c5e5b83fe80135e21900a54ad3 Mon Sep 17 00:00:00 2001 From: Paulo Santos Date: Thu, 24 Oct 2024 18:16:01 -0300 Subject: [PATCH] PIXEL-520 Update CI Workflow --- .github/workflows/ci.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3775841..c2373b8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -76,6 +76,15 @@ jobs: echo "online-version=$(npm view ${{steps.package.outputs.name}}@latest version)" >> $GITHUB_OUTPUT - name: Print versions + id: print-versions run: | echo "ONLINE VERSION: ${{ steps.online-versions.outputs.online-version}}" echo "THIS VERSION: ${{ steps.package.outputs.version}}" + + - name: Publish to NPM + if: steps.package.outputs.version != steps.online-versions.outputs.online-version + run: | + npm ci + npm publish --access public + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}