Skip to content

Commit d52688c

Browse files
authored
Fix npm prerelease (#732)
* Set npm tag depending on the release status * Bump to alpha 1
1 parent 06326ae commit d52688c

File tree

5 files changed

+7
-5
lines changed

5 files changed

+7
-5
lines changed

.github/workflows/publish.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ jobs:
3434
twine upload dist/*
3535
- name: Publish the NPM package
3636
run: |
37-
npm publish --access public
37+
echo $PRE_RELEASE
38+
if [[ $PRE_RELEASE == "true" ]]; then export TAG="next"; else export TAG="latest"; fi
39+
npm publish --tag ${TAG} --access public
3840
env:
3941
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
42+
PRE_RELEASE: ${{ github.event.release.prerelease }}

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -122,3 +122,4 @@ node_modules/
122122

123123
# vim stuff
124124
*.swp
125+
.devcontainer/

jupyterlab_git/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
# Distributed under the terms of the Modified BSD License.
33

44
version_info = (0, 21, 0)
5-
flag = 'a0'
5+
flag = 'a1'
66

77
__version__ = ".".join(map(str, version_info)) + flag

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@jupyterlab/git",
3-
"version": "0.21.0-alpha.0",
3+
"version": "0.21.0-alpha.1",
44
"description": "A JupyterLab extension for version control using git",
55
"main": "lib/index.js",
66
"types": "lib/index.d.ts",

src/version.ts

-2
This file was deleted.

0 commit comments

Comments
 (0)