@@ -2,29 +2,23 @@ import plugin from '@start/plugin'
22
33export const publish = ( ) => plugin ( 'publish' , ( { logMessage } ) => async ( ) => {
44 const { auto } = await import ( '@auto/core' )
5- const { writePublishTags } = await import ( '@auto/tag' )
6- const { makeGithubReleases } = await import ( '@auto/github' )
75 const { sendSlackMessage } = await import ( '@auto/slack' )
86 const { sendTelegramMessage } = await import ( '@auto/telegram' )
97 const { writeChangelogFiles } = await import ( '@auto/changelog' )
10- const { concurrentHooks } = await import ( '../utils/concurrent-hooks' )
8+ const { createOpenUpmTags } = await import ( '../hooks/create-openupm-tags' )
9+ const { makeGithubReleases } = await import ( '../hooks/make-github-release' )
1110 const { preparePackages } = await import ( '../hooks/prepare-packages' )
11+ const { concurrentHooks } = await import ( '../utils/concurrent-hooks' )
1212 const { getAutoConfig, getSlackConfig, getGithubConfig, getTelegramConfig } = await import ( '../utils/publish-helpers' )
13- const {
14- shouldWriteChangelogFiles,
15- shouldMakeGitHubReleases,
16- shouldSendSlackMessage,
17- shouldSendTelegramMessage,
18- shouldMakeGitTags,
19- } = await getAutoConfig ( )
13+ const { shouldSendSlackMessage, shouldSendTelegramMessage } = await getAutoConfig ( )
2014
2115 try {
2216 await auto ( {
23- prePublishCommit : shouldWriteChangelogFiles && writeChangelogFiles ,
17+ prePublishCommit : writeChangelogFiles ,
2418 prePublish : preparePackages ,
25- prePush : shouldMakeGitTags && writePublishTags ,
19+ prePush : createOpenUpmTags ,
2620 postPush : concurrentHooks (
27- shouldMakeGitHubReleases && makeGithubReleases ( getGithubConfig ( ) ) ,
21+ makeGithubReleases ( getGithubConfig ( ) ) ,
2822 shouldSendSlackMessage && sendSlackMessage ( getSlackConfig ( ) ) ,
2923 shouldSendTelegramMessage && sendTelegramMessage ( getTelegramConfig ( ) )
3024 ) ,
0 commit comments