From be0e7a6e2e32c5a24d92bdec8869c62f005f6439 Mon Sep 17 00:00:00 2001 From: tcbegley Date: Tue, 1 Sep 2020 18:52:37 +0100 Subject: [PATCH] Use publish action --- .github/workflows/release.yml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index dc6d5668..a49f924b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -28,10 +28,9 @@ jobs: python-version: 3.8 - name: Install Python dependencies run: python -m pip install dash[dev] flit invoke semver termcolor - - name: Publish release to npm - run: npm publish - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + - uses: JS-DevTools/npm-publish@v1 + with: + token: ${{ secrets.NPM_TOKEN }} - name: Publish release to PyPI run: flit publish env: @@ -85,10 +84,9 @@ jobs: python-version: 3.8 - name: Install Python dependencies run: python -m pip install dash[dev] flit invoke semver termcolor - - name: Publish prerelease to npm - run: npm publish - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + - uses: JS-DevTools/npm-publish@v1 + with: + token: ${{ secrets.NPM_TOKEN }} - name: Publish prerelease to PyPI run: flit publish env: