-
Notifications
You must be signed in to change notification settings - Fork 7
212 lines (199 loc) · 5.48 KB
/
release.yml
File metadata and controls
212 lines (199 loc) · 5.48 KB
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
# Perform a full release of the applications in the monorepo
#
# This does not account for splash/kvittering as these are deployed directly to prod on push
name: Manual Release
on:
workflow_dispatch:
inputs:
git-hash:
description: 'Git hash to release (leave empty to use latest on main)'
required: false
concurrency:
group: production
cancel-in-progress: true
env:
DEPLOYMENT_TARGET_HASH: ${{ github.event.inputs.git-hash || github.sha }}
permissions:
id-token: write
contents: read
jobs:
# The "check" job is responsible for verifying the minimum requirements to
# build all the packages in the monorepo.
check:
name: Verify build requirements
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- uses: actions/cache@v4
with:
path: .turbo
key: ${{ runner.os }}-turbo-${{ github.sha }}
restore-keys: |
${{ runner.os }}-turbo-
- uses: pnpm/action-setup@v2
with:
version: 9.15.5
- uses: actions/setup-node@v4
with:
node-version: 22.14.0
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
name: Install dependencies from pnpm lockfile
- run: pnpm lint-check
name: Run linting and formatting checks
- run: pnpm type-check
name: Run TypeScript type checker
build-brevduen:
name: brevduen
runs-on: ubuntu-24.04
needs:
- check
steps:
- name: Install local GitHub Actions
uses: actions/checkout@v4
with:
fetch-depth: 1
sparse-checkout: '.github'
sparse-checkout-cone-mode: true
- uses: ./.github/actions/build-brevduen
with:
deploy: true
environment: prd
git-hash: ${{ env.DEPLOYMENT_TARGET_HASH }}
build-dashboard:
name: dashboard
runs-on: ubuntu-24.04
needs:
- check
steps:
- name: Install local GitHub Actions
uses: actions/checkout@v4
with:
fetch-depth: 1
sparse-checkout: '.github'
sparse-checkout-cone-mode: true
- uses: ./.github/actions/build-dashboard
with:
deploy: true
environment: prd
git-hash: ${{ env.DEPLOYMENT_TARGET_HASH }}
build-invoicification:
name: invoicification
runs-on: ubuntu-24.04
needs:
- check
steps:
- name: Install local GitHub Actions
uses: actions/checkout@v4
with:
fetch-depth: 1
sparse-checkout: '.github'
sparse-checkout-cone-mode: true
- uses: ./.github/actions/build-invoicification
with:
deploy: true
environment: prd
git-hash: ${{ env.DEPLOYMENT_TARGET_HASH }}
build-kvittering-backend:
name: kvittering-backend
runs-on: ubuntu-24.04
needs:
- check
steps:
- name: Install local GitHub Actions
uses: actions/checkout@v4
with:
fetch-depth: 1
sparse-checkout: '.github'
sparse-checkout-cone-mode: true
- uses: ./.github/actions/build-kvittering-backend
with:
deploy: true
environment: prd
git-hash: ${{ env.DEPLOYMENT_TARGET_HASH }}
build-kvittering-frontend:
name: kvittering-frontend
runs-on: ubuntu-24.04
needs:
- check
steps:
- name: Install local GitHub Actions
uses: actions/checkout@v4
with:
fetch-depth: 1
sparse-checkout: '.github'
sparse-checkout-cone-mode: true
- uses: ./.github/actions/build-kvittering-frontend
with:
deploy: true
environment: prd
git-hash: ${{ env.DEPLOYMENT_TARGET_HASH }}
build-rif:
name: rif
runs-on: ubuntu-24.04
needs:
- check
steps:
- name: Install local GitHub Actions
uses: actions/checkout@v4
with:
fetch-depth: 1
sparse-checkout: '.github'
sparse-checkout-cone-mode: true
- uses: ./.github/actions/build-rif
with:
deploy: true
environment: prd
git-hash: ${{ env.DEPLOYMENT_TARGET_HASH }}
build-rpc:
name: rpc
runs-on: ubuntu-24.04
needs:
- check
steps:
- name: Install local GitHub Actions
uses: actions/checkout@v4
with:
fetch-depth: 1
sparse-checkout: '.github'
sparse-checkout-cone-mode: true
- uses: ./.github/actions/build-rpc
with:
deploy: true
environment: prd
git-hash: ${{ env.DEPLOYMENT_TARGET_HASH }}
build-splash:
name: splash-2025
runs-on: ubuntu-24.04
needs:
- check
steps:
- name: Install local GitHub Actions
uses: actions/checkout@v4
with:
fetch-depth: 1
sparse-checkout: '.github'
sparse-checkout-cone-mode: true
- uses: ./.github/actions/build-splash-2025
with:
deploy: ${{ env.DEPLOYMENT_TRIGGER_PUSH }}
git-hash: ${{ env.DEPLOYMENT_TARGET_HASH }}
build-web:
name: web
runs-on: ubuntu-24.04
needs:
- check
steps:
- name: Install local GitHub Actions
uses: actions/checkout@v4
with:
fetch-depth: 1
sparse-checkout: '.github'
sparse-checkout-cone-mode: true
- uses: ./.github/actions/build-web
with:
deploy: true
environment: prd
git-hash: ${{ env.DEPLOYMENT_TARGET_HASH }}