ci(release): release and trigger portainer webhooks in different steps

This commit is contained in:
PalmDevs
2024-07-20 01:12:34 +07:00
parent a20f8345b7
commit f1a169fb6b
5 changed files with 88 additions and 88 deletions

View File

@@ -1,11 +1,15 @@
import { $ } from 'execa'
const branch = (await $`git rev-parse --abbrev-ref HEAD`).stdout.trim()
export default {
plugins:
branch === 'main'
process.env.RELEASE_WORKFLOW_STEP === 'publish'
? [
[
'@semantic-release/exec',
{
publishCmd: 'bun run scripts/trigger-portainer-webhook.ts',
},
],
]
: [
[
'@codedependant/semantic-release-docker',
{
@@ -20,12 +24,5 @@ export default {
},
},
],
[
'@semantic-release/exec',
{
publishCmd: 'bun run scripts/trigger-portainer-webhook.ts',
},
],
]
: [],
],
}