Skip to content

Commit

Permalink
Support version bumping
Browse files Browse the repository at this point in the history
  • Loading branch information
razor-x committed Sep 19, 2022
1 parent c6ec777 commit e58dc0c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: publish
on:
push:
tags:
- v*
- '*'

jobs:
github:
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ Bootstrap a new LaTeX project in in five minutes or less.
$ git remote add origin [email protected]:<user>/<new-latex-project>.git
$ git push -u origin master
```
6. Ensure the GitHub action passes,
then publish the initial version of the package with
```
$ npm install
$ npm ver patch
```

### Updating from this skeleton

Expand Down
2 changes: 1 addition & 1 deletion makenew.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ makenew () {
read -p '> GitHub repository name (my-repo): ' mk_repo
read -p '> Primary tex file name (my-project): ' mk_name

sed_delete README.md '9,80d'
sed_delete README.md '9,86d'
sed_insert README.md '9i' 'TODO'

sed_delete bower.json '24d'
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"private": true,
"scripts": {
"ver": "bower version",
"postver": "git push --follow-tags",
"install": "bower install"
},
"devDependencies": {
Expand Down

0 comments on commit e58dc0c

Please sign in to comment.