Skip to content

Commit 7aab3c8

Browse files
committed
ci: modify the release.yml flow to make the release
Signed-off-by: Yurii Shynbuiev <[email protected]>
1 parent b7ad212 commit 7aab3c8

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

.github/workflows/release.yml

+12-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
---
22
name: Release sdk
33

4+
concurrency:
5+
group: release
6+
47
on:
58
workflow_dispatch:
69

@@ -10,7 +13,9 @@ jobs:
1013
ATALA_GITHUB_ACTOR: ${{ github.actor }}
1114
ATALA_GITHUB_TOKEN: ${{ secrets.IDENTUS_CI }}
1215
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
13-
16+
permissions:
17+
contents: write
18+
packages: write
1419
runs-on: ubuntu-latest
1520
steps:
1621
- uses: actions/checkout@v3
@@ -23,19 +28,23 @@ jobs:
2328
with:
2429
node-version: "lts/*"
2530

26-
- uses: crazy-max/ghaction-import-gpg@v5
31+
- uses: crazy-max/ghaction-import-gpg@v6
2732
id: import_gpg
2833
with:
29-
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
34+
gpg_private_key: ${{ secrets.HYP_BOT_GPG_PRIVATE }}
35+
passphrase: ${{ secrets.HYP_BOT_GPG_PASSWORD }}
3036
git_user_signingkey: true
3137
git_commit_gpgsign: true
38+
git_config_global: true
39+
git_tag_gpgsign: false
3240

3341
- name: Release
3442
env:
3543
GIT_AUTHOR_EMAIL: ${{ steps.import_gpg.outputs.email }}
3644
GIT_COMMITTER_EMAIL: ${{ steps.import_gpg.outputs.email }}
3745
GIT_AUTHOR_NAME: ${{ steps.import_gpg.outputs.name }}
3846
GIT_COMMITTER_NAME: ${{ steps.import_gpg.outputs.name }}
47+
GITHUB_TOKEN: ${{ secrets.IDENTUS_CI }}
3948
run: |
4049
npm install
4150
npx semantic-release

package.json

+4
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@
2626
"branches": [
2727
{
2828
"name": "release/*"
29+
},
30+
{
31+
"name": "beta",
32+
"prerelease": "rc"
2933
}
3034
],
3135
"tagFormat": "${version}",

0 commit comments

Comments
 (0)