Skip to content

Commit f694374

Browse files
authored
Add tags for publish (#1159)
1 parent 0dd642c commit f694374

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,13 @@ jobs:
5656
- name: Build dash-bootstrap-components
5757
run: just build
5858

59-
- run: npm publish --provenance --access public
59+
- name: Publish to npm
60+
run: |
61+
if [ ${{ steps.get-release-type.outputs.type }} = 'prerelease' ]; then
62+
npm publish --provenance --access public --tag next
63+
else
64+
npm publish --provenance --access public --tag latest
65+
fi
6066
6167
- name: Publish to PyPI
6268
uses: pypa/gh-action-pypi-publish@v1.12.3

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22
"name": "dash-bootstrap-components",
33
"version": "2.0.5-rc3",
44
"description": "Bootstrap components for Plotly Dash",
5-
"repository": "github:dbc-team/dash-bootstrap-components",
5+
"repository": {
6+
"type": "git",
7+
"url": "git+https://github.com/dbc-team/dash-bootstrap-components.git"
8+
},
69
"main": "lib/dash-bootstrap-components.min.js",
710
"scripts": {
811
"build": "NODE_ENV=production webpack --config=webpack/config.dist.js",

0 commit comments

Comments
 (0)