     grunt.task.run [
       "bump-only:#{type or 'patch'}"
       "conventionalChangelog"
+      "replace:amsf__site__update_version"
       "bump-commit"
     ]
 


    bump:
      options:
        files: [
          "package.json"
          "<%= config.app %>/_pages/index.html"
        ]
        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"

          {
            from: /(theme:)( +)(.+)/g
            to: "$1$2<%= config.amsf_theme_new %>"
          }
        ]

      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 %>"
          }
        ]

