@ludeo/cloud-common 1.1.29 → 1.1.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/main.yaml +87 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/v3/events/game-resource-created-response.d.ts +3 -3
- package/dist/v3/events/game-resource-created-response.js +9 -9
- package/dist/v3/events/game-resource-created-response.js.map +1 -1
- package/dist/v3/events/terminate-game-resource-request.d.ts +3 -2
- package/dist/v3/events/terminate-game-resource-request.js +8 -3
- package/dist/v3/events/terminate-game-resource-request.js.map +1 -1
- package/package.json +1 -1
- package/src/v3/events/allocate-game-resource-request.ts +1 -1
- package/src/v3/events/game-resource-created-response.ts +4 -4
- package/src/v3/events/terminate-game-resource-request.ts +9 -4
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
name: Build and Publish
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
branches:
|
|
6
|
+
- "**"
|
|
7
|
+
push:
|
|
8
|
+
branches:
|
|
9
|
+
- develop
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
build:
|
|
13
|
+
if: github.ref != 'refs/heads/develop' # Skip build on develop branch
|
|
14
|
+
runs-on: ubuntu-latest
|
|
15
|
+
|
|
16
|
+
steps:
|
|
17
|
+
- name: Checkout code
|
|
18
|
+
uses: actions/checkout@v4
|
|
19
|
+
|
|
20
|
+
- name: Set up Node.js
|
|
21
|
+
uses: actions/setup-node@v4
|
|
22
|
+
with:
|
|
23
|
+
node-version: "20"
|
|
24
|
+
|
|
25
|
+
- name: 🔐 Login to Ludeo NPM
|
|
26
|
+
run: |
|
|
27
|
+
npm config set @ludeo:registry https://registry.npmjs.org/ && npm config set '//registry.npmjs.org/:_authToken' ${{ secrets.NPM_TOKEN }}
|
|
28
|
+
|
|
29
|
+
- name: 🏗️ Install dependencies
|
|
30
|
+
run: npm install
|
|
31
|
+
|
|
32
|
+
- name: 🛠 Run build 🛠️
|
|
33
|
+
run: npm run build
|
|
34
|
+
|
|
35
|
+
- name: 🏗️ Install jq
|
|
36
|
+
run: sudo apt-get install -y jq
|
|
37
|
+
|
|
38
|
+
- name: 🐝 Validate version bump 🐝
|
|
39
|
+
run: |
|
|
40
|
+
git fetch origin develop > /dev/null 2>&1
|
|
41
|
+
|
|
42
|
+
CURRENT_VERSION=$(node -p "require('./package.json').version")
|
|
43
|
+
DEVELOP_VERSION=$(git show origin/develop:package.json | jq -r .version)
|
|
44
|
+
|
|
45
|
+
if [ -z "$DEVELOP_VERSION" ]; then
|
|
46
|
+
echo "Could not retrieve the version from the develop branch."
|
|
47
|
+
exit 1
|
|
48
|
+
fi
|
|
49
|
+
|
|
50
|
+
echo "Current version: $CURRENT_VERSION"
|
|
51
|
+
echo "Develop branch version: $DEVELOP_VERSION"
|
|
52
|
+
|
|
53
|
+
if [ "$CURRENT_VERSION" == "$DEVELOP_VERSION" ]; then
|
|
54
|
+
echo "😔 Version was not bumped! - please bump the version. 🤝"
|
|
55
|
+
exit 1
|
|
56
|
+
else
|
|
57
|
+
echo "🐝 Version was bumped! 🎉 - good to go! According to all known laws of aviation, there is no way that a bee should be able to fly. Its wings are too small to get its fat little body off the ground. The bee, of course, flies anyway because bees don't care what humans think is impossible."
|
|
58
|
+
fi
|
|
59
|
+
|
|
60
|
+
publish:
|
|
61
|
+
if: github.ref == 'refs/heads/develop'
|
|
62
|
+
runs-on: ubuntu-latest
|
|
63
|
+
|
|
64
|
+
steps:
|
|
65
|
+
- name: Checkout code
|
|
66
|
+
uses: actions/checkout@v4
|
|
67
|
+
|
|
68
|
+
- name: Set up Node.js
|
|
69
|
+
uses: actions/setup-node@v4
|
|
70
|
+
with:
|
|
71
|
+
node-version: "20"
|
|
72
|
+
|
|
73
|
+
- name: 🔐 Login to Ludeo NPM
|
|
74
|
+
run: |
|
|
75
|
+
npm config set @ludeo:registry https://registry.npmjs.org/ && npm config set '//registry.npmjs.org/:_authToken' ${{ secrets.NPM_TOKEN }}
|
|
76
|
+
|
|
77
|
+
- name: 🏗️ Install dependencies
|
|
78
|
+
run: npm install
|
|
79
|
+
|
|
80
|
+
- name: 🛠 Run build 🛠️
|
|
81
|
+
run: npm run build
|
|
82
|
+
|
|
83
|
+
- name: 🏗️ Install jq
|
|
84
|
+
run: sudo apt-get install -y jq
|
|
85
|
+
|
|
86
|
+
- name: 📦 Publish to npm
|
|
87
|
+
run: npm publish
|