diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 624187b..6128ad0 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -17,22 +17,15 @@ jobs: with: node-version: '20' cache: 'npm' - cache-dependency-path: type-from-json/package-lock.json - name: Install dependencies - run: | - cd type-from-json - npm ci + run: npm ci - name: Run linting - run: | - cd type-from-json - npm run lint + run: npm run lint - name: Run tests - run: | - cd type-from-json - npm test + run: npm test build: needs: test @@ -45,20 +38,15 @@ jobs: with: node-version: '20' cache: 'npm' - cache-dependency-path: type-from-json/package-lock.json - name: Install dependencies - run: | - cd type-from-json - npm ci + run: npm ci - name: Build project - run: | - cd type-from-json - npm run build + run: npm run build - name: Upload build artifacts uses: actions/upload-artifact@v4 with: name: dist - path: type-from-json/dist/ + path: dist/