mirror of
https://github.com/arsvendg/Stirling-PDF.git
synced 2026-07-16 11:23:10 +02:00
@@ -145,18 +145,12 @@ jobs:
|
||||
node-version: '20'
|
||||
cache: 'npm'
|
||||
cache-dependency-path: frontend/package-lock.json
|
||||
- name: Configure npm with token (if available)
|
||||
if: secrets.NPM_TOKEN != ''
|
||||
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
|
||||
- name: Install frontend dependencies
|
||||
run: cd frontend && npm ci
|
||||
- name: Build frontend
|
||||
run: cd frontend && npm run build
|
||||
- name: Run frontend tests
|
||||
run: cd frontend && npm run test -- --run
|
||||
- name: Clean up npmrc
|
||||
if: always() && secrets.NPM_TOKEN != ''
|
||||
run: rm -f ~/.npmrc
|
||||
- name: Upload frontend build artifacts
|
||||
uses: actions/[email protected]
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user