Skip to content

Commit dcba3fa

Browse files
committed
fix: change pluginName to releasedPluginName
1 parent a3508f8 commit dcba3fa

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

release/.release-it.cjs

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,10 @@
1111
* @see https://github.com/release-it/release-it/blob/main/docs/configuration.md
1212
*/
1313

14-
const path = require('path')
15-
16-
// get parent directory path
17-
const parentDirectoryPath = path.resolve(__dirname, `../`)
18-
19-
// get parent directory name
20-
const pluginName = path.basename(parentDirectoryPath)
14+
const releasedPluginName = 'wp-react-plugin'
2115

2216
module.exports = {
23-
releasedPluginName: 'wp-react-plugin',
17+
releasedPluginName,
2418
git: {
2519
commit: true,
2620
commitMessage: 'chore: release v${version}',
@@ -35,7 +29,7 @@ module.exports = {
3529
'after:bump': [
3630
'yarn build && echo ✅ build success && yarn sync:version && echo ✅ sync version success',
3731
'yarn create:release && echo ✅ create release files success',
38-
`cd release/${pluginName} && composer install --no-dev && cd ../.. && echo ✅ composer install success`,
32+
`cd release/${releasedPluginName} && composer install --no-dev && cd ../.. && echo ✅ composer install success`,
3933
'yarn zip && echo ✅ create zip success',
4034
], // run after bumping version
4135
// 'after:git:release': 'echo After git push, before github release', // run after git push, before github release
@@ -49,7 +43,7 @@ module.exports = {
4943
github: {
5044
release: true,
5145
releaseName: 'v${version}',
52-
assets: [`./release/${pluginName}.zip`], // relative path
46+
assets: [`./release/${releasedPluginName}.zip`], // relative path
5347
web: false,
5448
},
5549
allowedItems: [

0 commit comments

Comments
 (0)