mirror of
https://github.com/litruv/API-WebSocket-Bridge.git
synced 2026-07-27 04:06:04 +10:00
Compare commits
11 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| bd629bf9fe | |||
| f40610ec02 | |||
| 9612d9b7c8 | |||
| d8787bd303 | |||
| 0fe3e6f134 | |||
| daf040439c | |||
| e5054f7c95 | |||
| 15e8523f3d | |||
| ac68b12a00 | |||
| 4448ca0615 | |||
| e15a4952ae |
26
.github/workflows/docker-push.yml
vendored
Normal file
26
.github/workflows/docker-push.yml
vendored
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
name: Docker
|
||||||
|
|
||||||
|
on:
|
||||||
|
release:
|
||||||
|
types: [created]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Log into Docker registry
|
||||||
|
uses: docker/login-action@v1
|
||||||
|
with:
|
||||||
|
registry: docker.io
|
||||||
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
|
|
||||||
|
- name: Build and push Docker image
|
||||||
|
uses: docker/build-push-action@v2
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
push: true
|
||||||
|
tags: ${{ github.repository }}:${{ github.sha }}
|
||||||
19
.github/workflows/versionIncrement.yml
vendored
Normal file
19
.github/workflows/versionIncrement.yml
vendored
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
name: Version Increment
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
version:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
if: "!startsWith(github.event.head_commit.message, '[RELEASE]')"
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
- run: git config --global user.name 'Litruv'
|
||||||
|
- run: git config --global user.email 'litruv@gmail.com'
|
||||||
|
- run: npm version patch -m "[RELEASE] %s"
|
||||||
|
- run: git push
|
||||||
@@ -97,7 +97,7 @@ The example response from Salty Bet's API:
|
|||||||
"remaining": "78 more matches until the next tournament!"
|
"remaining": "78 more matches until the next tournament!"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
The configuration defines five events with their respective `emitEvent` names and associated parameters. These events allow you to subscribe to specific changes in the API response:
|
The configuration defines five events with their respective `emitEvent` names and associated parameters. These events allow you to subscribe to specific changes in the API response:
|
||||||
|
|
||||||
- `teamNamesChange`: Triggers when the names of the players change (`"p1name"` or `"p2name"`).
|
- `teamNamesChange`: Triggers when the names of the players change (`"p1name"` or `"p2name"`).
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "api-websocket-bridge",
|
"name": "api-websocket-bridge",
|
||||||
"version": "1.0.3",
|
"version": "1.0.4",
|
||||||
"description": "API WebSocket Bridge is a Node.js application that provides a WebSocket server for real-time communication. It allows clients to connect and exchange data using the WebSocket protocol",
|
"description": "API WebSocket Bridge is a Node.js application that provides a WebSocket server for real-time communication. It allows clients to connect and exchange data using the WebSocket protocol",
|
||||||
"main": "source/index.js",
|
"main": "source/index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user