From dfeb372103127a1e58026616b5621ae91aa2df3d Mon Sep 17 00:00:00 2001 From: GRINISH NEPAL Date: Tue, 6 Sep 2022 17:28:10 -0700 Subject: [PATCH] ci: update the workflow and add releaserc --- .github/workflows/release.yml | 5 +++-- .releaserc.json | 24 ++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 .releaserc.json diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 92852fe..d8e2a1a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -56,10 +56,11 @@ jobs: uses: actions/download-artifact@v2 - name: Copy artifacts to current directory run: mv earlybird-binaries/* . - - name: Rename macOS binary - run: mv go-earlybird go-earlybird-macos - name: Print current directory run: ls -lah + - name: Rename macOS binary + run: mv go-earlybird go-earlybird-macos + - uses: actions/setup-node@v2 with: node-version: '16' diff --git a/.releaserc.json b/.releaserc.json new file mode 100644 index 0000000..75585d8 --- /dev/null +++ b/.releaserc.json @@ -0,0 +1,24 @@ +{ + "branches": [ + "fix/version-issue" + ], + "plugins": [ + ["@semantic-release/github", { + "assets": ["go-earlybird-linux", "go-earlybird-macos", "go-earlybird.exe"], + "proxy": false + }], + "@semantic-release/release-notes-generator", + [ + "@semantic-release/changelog", + { + "changelogFile": "CHANGELOG.md" + } + ], + [ + "@semantic-release/git", + { + "assets": ["CHANGELOG.md"] + } + ] + ] +}