chore: add tg release bot

This commit is contained in:
Ricardo Arturo Cabral Mejia 2022-11-06 01:10:28 -04:00
parent ed2f3f8ab0
commit 51d5cdaeb0
No known key found for this signature in database
GPG Key ID: 5931EBF43A650245
5 changed files with 1560 additions and 8 deletions

View File

@ -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

View File

@ -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

View File

@ -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

File diff suppressed because it is too large Load Diff

View File

@ -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",