From 1e76382ace87a27e34e78ec62c47545ba11f2083 Mon Sep 17 00:00:00 2001 From: Yurii Shynbuiev Date: Fri, 5 Jul 2024 18:34:10 +0700 Subject: [PATCH] fix: test release flow Signed-off-by: Yurii Shynbuiev --- .github/workflows/release.yml | 3 ++- .releaserc.yml | 44 ++++++++++++++++++----------------- 2 files changed, 25 insertions(+), 22 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 508e1fd1f..617721fbe 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,9 +17,10 @@ jobs: - uses: actions/checkout@v4 with: submodules: recursive - token: ${{ secrets.IDENTUS_CI }} + token: ${{ secrets.GITHUB_TOKEN }} ref: ${{ github.event.inputs.release-branch }} fetch-depth: 0 + persist-credentials: false - name: Setup Node.js uses: actions/setup-node@v4 diff --git a/.releaserc.yml b/.releaserc.yml index 2cda6a6cc..8bceb061f 100644 --- a/.releaserc.yml +++ b/.releaserc.yml @@ -6,34 +6,35 @@ branches: plugins: - '@semantic-release/commit-analyzer' - [ - "@semantic-release/release-notes-generator", - { - "preset": "conventionalcommits", - "presetConfig": { - "types": [ - { - "type": "feat", - "section": ":rocket: New Content", - "hidden": false - }, - { - "type": "fix", - "section": ":sparkles: Updates", - "hidden": false - }, - ] - } + "@semantic-release/release-notes-generator", + { + "preset": "conventionalcommits", + "presetConfig": { + "types": [ + { + "type": "feat", + "section": ":rocket: New Content", + "hidden": false + }, + { + "type": "fix", + "section": ":sparkles: Updates", + "hidden": false + }, + ] } - ] + } + ] - [ '@semantic-release/changelog', { changelogFile: 'CHANGELOG.md' } ] - [ '@semantic-release/exec', { prepareCmd: 'npm version ${nextRelease.version} --git-tag-version false && ./infra/release-docs-container.sh ${nextRelease.version}', - } ] + } ] - [ '@semantic-release/git', { assets: [ 'package.json' , 'package-lock.json', 'CHANGELOG.md' ], message: 'chore(release): release the Identus documentation portal ${nextRelease.version} - ${nextRelease.notes}' } ] + ${nextRelease.notes}' } + ] - [ "semantic-release-slack-bot", { notifyOnSuccess: true, notifyOnFail: true, @@ -42,4 +43,5 @@ plugins: text: "A new version of `$package_name` successfully released!\n Version: `$npm_package_version`\n Release notes:\n - $release_notes" } } ] + $release_notes" } } + ]