diff --git a/.github/workflows/releases.yml b/.github/workflows/releases.yml index 154df26e..f4b6464e 100644 --- a/.github/workflows/releases.yml +++ b/.github/workflows/releases.yml @@ -50,12 +50,15 @@ jobs: uses: actions/download-artifact@v2 with: name: ${{ github.event.inputs.package }} - - - name: publish - run: npm publish *.tgz + + - name: setup authentication + run: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" >> .npmrc env: NPM_TOKEN: ${{ secrets.TOKEN }} - + + - name: publish + run: npm publish *.tgz + - name: notify slack on failure if: failure() run: |