-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (32 loc) · 1.24 KB
/
main-v3.yaml
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
name: Build, push, and deploy
on: [push]
concurrency:
group: v3-${{ github.ref }}
jobs:
deploy:
name: Deploy application to dev
runs-on: ubuntu-latest
permissions:
contents: 'read'
id-token: 'write'
if: github.ref == 'refs/heads/v3'
steps:
- uses: actions/checkout@v4
- name: Install bun
uses: oven-sh/setup-bun@v1
- name: Install dependencies (bun)
working-directory: './v3/packages/internarbeidsflate-decorator-v3'
run: bun install
- name: Run tests
working-directory: './v3/packages/internarbeidsflate-decorator-v3'
run: bun run test
- name: Build application
working-directory: './v3/packages/internarbeidsflate-decorator-v3'
run: bun run build
- name: Upload to CDN
uses: navikt/frontend/actions/cdn-upload/v1@main
with:
cdn-team-name: personoversikt
source: ./v3/packages/internarbeidsflate-decorator-v3/dist/
destination: /internarbeidsflate-decorator-v3/dev/latest
no-cache-paths: "internarbeidsflate-decorator-v3/dev/latest/dist/asset-manifest.json,internarbeidsflate-decorator-v3/dev/latest/dist/bundle.js,internarbeidsflate-decorator-v3/dev/latest/dist/index.css"