@@ -3,31 +3,47 @@ name: CI
33on : [push, workflow_dispatch]
44
55env :
6- NODE_VERSION : 24
6+ NODE_VERSION : 26
77
88jobs :
9- linting :
10- name : Linting
9+ validate :
10+ name : Validate and build
1111 runs-on : ubuntu-latest
1212 steps :
13+ - name : Code Checkout
14+ uses : actions/checkout@v5
15+
16+ - name : Install Corepack # for pnpm
17+ run : |
18+ npm install -g corepack@0.34.7 --ignore-scripts
19+ corepack enable
20+ corepack install
21+
1322 - name : Install NodeJS
14- uses : actions/setup-node@v5
23+ uses : actions/setup-node@v6
1524 with :
1625 node-version : ${{ env.NODE_VERSION }}
17-
18- - name : Code Checkout
19- uses : actions/checkout@v5
26+ cache : ' pnpm '
27+ cache-dependency-path : ' pnpm-lock.yaml '
28+ package-manager-cache : true
2029
2130 - name : Install Dependencies
22- run : npm install
31+ run : pnpm install
2332
2433 - name : Code Linting
25- run : npm run lint
34+ run : pnpm run lint
35+
36+ - name : Build
37+ run : pnpm build
38+ env :
39+ DIRECTUS_URL : ${{ secrets.DIRECTUS_URL }}
40+ DIRECTUS_TOKEN : ${{ secrets.DIRECTUS_TOKEN }}
2641
27- build :
28- name : Build
42+
43+ publish :
44+ name : Publish image
2945 if : github.ref == 'refs/heads/main' && success()
30- needs : linting
46+ needs : validate
3147 runs-on : ubuntu-latest
3248 steps :
3349 - name : Checkout
6076 org.opencontainers.image.licenses=MIT
6177 org.opencontainers.image.title=scrumlr.io - Landing Page
6278 org.opencontainers.image.description=The landing page of scrumlr.io
63-
79+
6480 - name : Set up Docker buildx
6581 uses : docker/setup-buildx-action@v3
6682
7591 build-args : |
7692 DIRECTUS_URL=${{ secrets.DIRECTUS_URL }}
7793 DIRECTUS_TOKEN=${{ secrets.DIRECTUS_TOKEN }}
78- PUBLIC_SCRUMLR_SERVER_URL="https://development.scrumlr.fra.ics.inovex.io/api"
94+ PUBLIC_SCRUMLR_SERVER_URL="https://development.scrumlr.fra.ics.inovex.io/api"
0 commit comments