-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(release): update release to regenerate docs.
Addes back the exec stage to run the command that generates gh-pages with the rendered output from vuepress
- Loading branch information
1 parent
23ee59b
commit 74bd48d
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,29 @@ | ||
'use strict' | ||
|
||
const config = require('@codedependant/release-config-npm') | ||
|
||
module.exports = { | ||
'extends': '@codedependant/release-config-npm' | ||
, 'branches': ['main'] | ||
, 'plugins': remap(config.plugins) | ||
} | ||
|
||
function remap(plugins) { | ||
const remapped = [] | ||
|
||
for (const [name, config] of plugins) { | ||
if (name === '@semantic-release/git') { | ||
remapped.push([ | ||
'@semantic-release/exec', { | ||
prepareCmd: 'npm run docs:build' | ||
} | ||
]) | ||
config.assets = [...config.assets, 'docs'] | ||
} | ||
|
||
remapped.push([name, config]) | ||
} | ||
|
||
return remapped | ||
|
||
} |