Skip to content

Commit

Permalink
Fix npm prerelease (#732)
Browse files Browse the repository at this point in the history
* Set npm tag depending on the release status

* Bump to alpha 1
  • Loading branch information
fcollonval authored Aug 22, 2020
1 parent 06326ae commit d52688c
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ jobs:
twine upload dist/*
- name: Publish the NPM package
run: |
npm publish --access public
echo $PRE_RELEASE
if [[ $PRE_RELEASE == "true" ]]; then export TAG="next"; else export TAG="latest"; fi
npm publish --tag ${TAG} --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
PRE_RELEASE: ${{ github.event.release.prerelease }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -122,3 +122,4 @@ node_modules/

# vim stuff
*.swp
.devcontainer/
2 changes: 1 addition & 1 deletion jupyterlab_git/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
# Distributed under the terms of the Modified BSD License.

version_info = (0, 21, 0)
flag = 'a0'
flag = 'a1'

__version__ = ".".join(map(str, version_info)) + flag
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jupyterlab/git",
"version": "0.21.0-alpha.0",
"version": "0.21.0-alpha.1",
"description": "A JupyterLab extension for version control using git",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand Down
2 changes: 0 additions & 2 deletions src/version.ts

This file was deleted.

0 comments on commit d52688c

Please sign in to comment.