Skip to content

Commit

Permalink
fix: plugin version in dist files
Browse files Browse the repository at this point in the history
  • Loading branch information
limonte committed Nov 7, 2022
1 parent 6aabc19 commit e1da081
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
9 changes: 5 additions & 4 deletions release.config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
module.exports = {
debug: true,
branches: ['main'],
plugins: [
'@semantic-release/commit-analyzer',
'@semantic-release/release-notes-generator',
prepare: [
{
path: '@semantic-release/exec',
cmd: 'VERSION=${nextRelease.version} yarn build',
},
'@semantic-release/changelog',
'@semantic-release/npm',
'@semantic-release/git',
'@semantic-release/github',
],
}
4 changes: 3 additions & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ import babel from '@rollup/plugin-babel'
import terser from '@rollup/plugin-terser'
import pkg from './package.json'

const banner = `// ${pkg.name} v${pkg.version}\n`
const version = process.env.VERSION || pkg.version

const banner = `// ${pkg.name} v${version}\n`

export default [false, true].map((minify) => {
const plugins = [
Expand Down

0 comments on commit e1da081

Please sign in to comment.