From 8571782eb3fb0f4962482deb24dbc1407b3d90c4 Mon Sep 17 00:00:00 2001 From: Tim Pechersky Date: Thu, 5 Dec 2024 15:08:07 +0800 Subject: [PATCH] initial implementation --- .changeset/happy-kiwis-smoke.md | 5 +++++ .github/workflows/release.yml | 9 +++++++++ 2 files changed, 14 insertions(+) create mode 100644 .changeset/happy-kiwis-smoke.md diff --git a/.changeset/happy-kiwis-smoke.md b/.changeset/happy-kiwis-smoke.md new file mode 100644 index 0000000..1b9b14c --- /dev/null +++ b/.changeset/happy-kiwis-smoke.md @@ -0,0 +1,5 @@ +--- +"@peeramid-labs/eds": patch +--- + +ci chore diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3ac2e76..28c1323 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,6 +25,7 @@ jobs: - name: generate docs run: pnpm hardhat docgen - name: Create Release Pull Request or Publish to npm + id: changesets uses: changesets/action@v1 with: publish: pnpm run release @@ -34,3 +35,11 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + - name: Send Discord notification + if: steps.changesets.outputs.published == 'true' + uses: Ilshidur/action-discord@master + with: + args: | + New release published! Check out the changes: https://github.com/${{ github.repository }}/releases/tag/${{ fromJson(steps.changesets.outputs.publishedPackages)[0].version }} + env: + DISCORD_WEBHOOK: ${{ secrets.DISCORD_RELEASE_NOTIFIER }}