Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
release script will now update latest version with RCs
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Messerle committed Oct 29, 2015
1 parent 14eebf4 commit 43955da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions release.js
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@
exec([
'rm -rf ./*-rc*',
'cp -Rf ../dist/docs {{newVersion}}',
( newVersion.indexOf('rc') < 0 ? 'rm -rf latest && cp -Rf ../dist/docs latest' : '# skipped latest because this is a release candidate' ),
'rm -rf latest && cp -Rf ../dist/docs latest',
'git add -A',
'git commit -m "release: version {{newVersion}}"',
'rm -rf ../dist'
Expand Down Expand Up @@ -325,7 +325,7 @@
config.versions.unshift(newVersion);

//-- only set to default if not a release candidate
if (newVersion.indexOf('rc') < 0) config.latest = newVersion;
config.latest = newVersion;
fs.writeFileSync(options.cwd + '/docs.json', JSON.stringify(config, null, 2));
}
}
Expand Down

0 comments on commit 43955da

Please sign in to comment.