Skip to content

Commit 9e2d02f

Browse files
committed
chore: update workflows
1 parent 1e519a7 commit 9e2d02f

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

.github/workflows/npm-publish.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- run: |
3131
echo 'Release created: ${{steps.release.outputs.release_created}}' # 'true' or 'false'
3232
echo 'Release exists: ${{steps.release.outputs.release_exists}}' # 'true' or 'false'
33-
echo 'Release tag: ${{steps.release.outputs.release_tag}}' # The tag from package.json
33+
echo 'Release tag: ${{steps.version.outputs.release_tag}}' # The tag from package.json
3434
3535
- name: Notification
3636
if: ${{ always() }}
@@ -41,7 +41,7 @@ jobs:
4141
message: |
4242
Repository: ${{ github.repository }}
4343
Release : ${{ env[steps.release.outputs.release_created] }}
44-
Tag: ${{ steps.release.outputs.release_tag }}
44+
Tag: ${{ steps.version.outputs.release_tag }}
4545
4646
4747
publish-npm:

.github/workflows/release.yml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Notify Discord on Release
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
notify-discord:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Send notification to Discord
13+
env:
14+
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK_URL }}
15+
uses: Ilshidur/[email protected]

0 commit comments

Comments
 (0)