Skip to content

Commit

Permalink
feat: v1.0.2 onwards publish to NPM in release
Browse files Browse the repository at this point in the history
  • Loading branch information
cfloressuazo committed Nov 20, 2023
1 parent d7b8c3a commit f65c81d
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ jobs:
- name: Test Python module
run: nox -s test-${{ matrix.python-version }}
publish:
name: Publish dash-loading-spinners to TestPyPI and PyPI
name: Publish dash-loading-spinners to TestPyPI, PyPI and NPM
runs-on: ubuntu-latest
needs: python-test
steps:
Expand Down Expand Up @@ -108,3 +108,15 @@ jobs:
uses: pypa/gh-action-pypi-publish@v1.4.2
with:
password: ${{ secrets.PYPI_API_TOKEN }}

- uses: actions/setup-node@v3
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'

- name: Publish dash-loading-spinners to NPM
run: |
npm ci
npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit f65c81d

Please sign in to comment.