Skip to content

Commit

Permalink
fix(release): update release to regenerate docs.
Browse files Browse the repository at this point in the history
Addes back the exec stage to run the command that generates gh-pages
with the rendered output from vuepress
  • Loading branch information
esatterwhite committed Oct 31, 2021
1 parent 23ee59b commit 74bd48d
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions release.config.js
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

}

0 comments on commit 74bd48d

Please sign in to comment.