Skip to content

Commit

Permalink
Update CI workflow to release with tags
Browse files Browse the repository at this point in the history
  • Loading branch information
goanpeca committed Dec 20, 2020
1 parent 41dbfc7 commit a00402a
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 12 deletions.
20 changes: 11 additions & 9 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
[bumpversion]
current_version = 5.0.9.dev0
current_version = 5.0.9beta0
commit = True
message = Bump version: {current_version} → {new_version}
tag = False
tag_name = v{new_version}
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\.(?P<release>[a-z]+)(?P<build>\d+))?
tag_name = {new_version}
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)((?P<release>[a-z]+)(?P<build>\d+))?
serialize =
{major}.{minor}.{patch}.{release}{build}
{major}.{minor}.{patch}{release}{build}
{major}.{minor}.{patch}

[bumpversion:part:release]
optional_value = prod
first_value = dev
first_value = beta
values =
dev
prod
beta
prod

[bumpversion:part:build]

Expand All @@ -31,5 +31,7 @@ search = version = '{current_version}'
replace = version = '{new_version}'
[bumpversion:file:package.json]
parse = (?P<major>\d+).(?P<minor>\d+).(?P<patch>\d+)
serialize = {major}.{minor}.{patch}
parse = (?P<major>\d+).(?P<minor>\d+).(?P<patch>\d+)(-(?P<release>[a-z]+)\.(?P<build>\d+))?
serialize =
{major}.{minor}.{patch}-{release}.{build}
{major}.{minor}.{patch}
2 changes: 1 addition & 1 deletion .github/workflows/release_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Create Release and publish package
on:
push:
tags:
- 'v*'
- '**'

jobs:
publish:
Expand Down
2 changes: 1 addition & 1 deletion nbformat/_version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Make sure to update package.json, too!
version_info = (5, 0, 9, 'dev0')
version_info = (5, 0, 9, 'beta0')
__version__ = '.'.join(map(str, version_info))
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nbformat-schema",
"version": "5.0.9",
"version": "5.0.9-beta.0",
"description": "JSON schemata for Jupyter notebook formats",
"main": "index.js",
"files": [
Expand Down

0 comments on commit a00402a

Please sign in to comment.