mirror of
https://github.com/Cameri/nostream.git
synced 2025-03-17 21:31:48 +01:00
chore: add tg release bot
This commit is contained in:
parent
ed2f3f8ab0
commit
51d5cdaeb0
21
.github/workflows/checks.yml
vendored
21
.github/workflows/checks.yml
vendored
@ -90,8 +90,8 @@ jobs:
|
||||
flag-name: Integration
|
||||
parallel: true
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
finish:
|
||||
name: Finish
|
||||
post-tests:
|
||||
name: Post Tests
|
||||
needs: [test-units-and-cover, test-integrations-and-cover]
|
||||
runs-on: ubuntu-latest
|
||||
if: ${{ always() }}
|
||||
@ -100,4 +100,19 @@ jobs:
|
||||
uses: coverallsapp/github-action@master
|
||||
with:
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
parallel-finished: true
|
||||
parallel-finished: true
|
||||
release:
|
||||
name: Release
|
||||
runs-on: ubuntu-latest
|
||||
needs: [finish]
|
||||
if: github.ref == 'refs/heads/master'
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version-file: .nvmrc
|
||||
- name: Release
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: npx semantic-release
|
4
.github/workflows/release.yml
vendored
4
.github/workflows/release.yml
vendored
@ -101,7 +101,3 @@ jobs:
|
||||
push: true
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
- name: Release
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: npx semantic-release
|
@ -5,6 +5,16 @@
|
||||
"preset": "conventionalcommits"
|
||||
}],
|
||||
"@semantic-release/release-notes-generator",
|
||||
"@semantic-release/github"
|
||||
"@semantic-release/github",
|
||||
["semantic-release-telegram", {
|
||||
"name": "nostr-ts-relay",
|
||||
"chats": [ -1001670974037 ],
|
||||
"templates": {
|
||||
"success" : "A new version of <a href='{repository_url}'>{name}</a> has been released. Current version is <b>{version}</b>"
|
||||
},
|
||||
"assets" : [
|
||||
{ "glob": [ "./*" ], "name": "nostr-ts-relay-{version}.zip" }
|
||||
]
|
||||
}]
|
||||
]
|
||||
}
|
||||
|
1530
package-lock.json
generated
1530
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -86,6 +86,7 @@
|
||||
"nyc": "^15.1.0",
|
||||
"rimraf": "^3.0.2",
|
||||
"semantic-release": "19.0.5",
|
||||
"semantic-release-telegram": "1.6.0",
|
||||
"sinon-chai": "^3.7.0",
|
||||
"source-map-support": "^0.5.21",
|
||||
"ts-node": "^10.9.1",
|
||||
|
Loading…
x
Reference in New Issue
Block a user