Skip to content

Commit

Permalink
fix(grunt): index version not bumped
Browse files Browse the repository at this point in the history
  • Loading branch information
sparanoid committed Aug 11, 2015
1 parent 3445afb commit c9e9f8a
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions Gruntfile.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,16 @@ module.exports = (grunt) ->
}
]

amsf__site__update_version:
src: ["<%= config.app %>/_pages/index.html"]
dest: "<%= config.app %>/_pages/index.html"
replacements: [
{
from: /("amsf-version">)\d+\.\d+\.\d+/g
to: "$1<%= config.pkg.version %>"
}
]

availability:
src: ["<%= config.app %>/_data/curtana.yml"]
dest: "<%= config.app %>/_data/curtana.yml"
Expand Down Expand Up @@ -383,15 +393,12 @@ module.exports = (grunt) ->

bump:
options:
files: [
"package.json"
"<%= config.app %>/_pages/index.html"
]
files: ["package.json"]
updateConfigs: ["pkg"]
commitMessage: 'chore: release v%VERSION%'
commitFiles: ["-a"]
tagMessage: 'chore: create tag %VERSION%'
push: false
regExp: true

grunt.registerTask "reset", "Reset user availability", (target) ->
grunt.config.set "replace.availability.replacements.0.to", "$1 true"
Expand Down Expand Up @@ -451,6 +458,7 @@ module.exports = (grunt) ->
grunt.task.run [
"bump-only:#{type or 'patch'}"
"conventionalChangelog"
"replace:amsf__site__update_version"
"bump-commit"
]

Expand Down

0 comments on commit c9e9f8a

Please sign in to comment.