Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 37 additions & 23 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,41 +10,55 @@ permissions:
contents: read

jobs:
quality:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [22]

steps:
- uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
node-version: 22
cache: 'npm'
- run: npm ci
- run: npm run lint

- name: Install dependencies
run: npm ci

- name: Lint
run: npm run lint

- name: Type check
run: npm run type-check
type-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: 'npm'
- run: npm ci
- run: npm run type-check

- name: Test
run: npm run test -- --run
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: 'npm'
- run: npm ci
- run: npm run test -- --run

- name: Build
run: npm run build
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: 'npm'
- run: npm ci
- run: npm run build
env:
NEXT_PUBLIC_API_URL: http://localhost:8000

publish_github:
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/ontokit-web-')
needs: [quality]
needs: [lint, type-check, test, build]
runs-on: ubuntu-latest
permissions:
contents: write
Expand All @@ -55,7 +69,7 @@ jobs:

publish_docker:
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/ontokit-web-')
needs: [quality]
needs: [lint, type-check, test, build]
runs-on: ubuntu-latest
permissions:
contents: read
Expand Down