-
Notifications
You must be signed in to change notification settings - Fork 6
59 lines (50 loc) · 1.62 KB
/
builds.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Builds
on:
push:
branches-ignore:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-24.04
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- run: ./scripts/dev-init.sh
- name: Build packages
run: |
npm -w packages/app-api run build
npm -w packages/app-mock-gameserver run build
npm -w packages/app-connector run build
npm -w packages/lib-apiclient run build
npm -w packages/lib-components run build
npm -w packages/lib-config run build
npm -w packages/lib-db run build
npm -w packages/lib-gameserver run build
npm -w packages/lib-http run build
npm -w packages/lib-util run build
npm -w packages/lib-queues run build
npm -w packages/lib-modules run build
npm -w packages/test run build
npm -w packages/web-main run build
npm -w packages/web-docs run build
- name: Extract branch name
shell: bash
run: echo "branch=$(echo ${GITHUB_REF#refs/heads/})" >>$GITHUB_OUTPUT
id: extract_branch
- name: Upload Sourcemaps to Sentry
uses: getsentry/action-release@v1
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
SENTRY_PROJECT: web-main
with:
sourcemaps: ./packages/web-main/dist