mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2026-02-17 13:52:14 +01:00
2
.github/workflows/PR-Auto-Deploy-V2.yml
vendored
2
.github/workflows/PR-Auto-Deploy-V2.yml
vendored
@@ -270,8 +270,6 @@ jobs:
|
||||
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/test:v2-frontend-${{ steps.commit-hashes.outputs.frontend_short }}
|
||||
build-args: VERSION_TAG=v2-alpha
|
||||
platforms: linux/amd64
|
||||
secrets: |
|
||||
npmrc=//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}
|
||||
|
||||
- name: Build and push V2 backend image
|
||||
if: steps.check-backend.outputs.exists == 'false'
|
||||
|
||||
6
.github/workflows/build.yml
vendored
6
.github/workflows/build.yml
vendored
@@ -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/upload-artifact@v4.6.2
|
||||
with:
|
||||
|
||||
2
.github/workflows/deploy-on-v2-commit.yml
vendored
2
.github/workflows/deploy-on-v2-commit.yml
vendored
@@ -103,8 +103,6 @@ jobs:
|
||||
${{ secrets.DOCKER_HUB_USERNAME }}/test:v2-frontend-latest
|
||||
build-args: VERSION_TAG=v2-alpha
|
||||
platforms: linux/amd64
|
||||
secrets: |
|
||||
npmrc=//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}
|
||||
|
||||
- name: Build and push backend image
|
||||
if: steps.check-backend.outputs.exists == 'false'
|
||||
|
||||
@@ -51,10 +51,6 @@ jobs:
|
||||
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
|
||||
working-directory: frontend
|
||||
run: npm ci
|
||||
@@ -62,10 +58,6 @@ jobs:
|
||||
- name: Generate frontend license report
|
||||
working-directory: frontend
|
||||
run: npm run generate-licenses
|
||||
|
||||
- name: Clean up npmrc
|
||||
if: always() && secrets.NPM_TOKEN != ''
|
||||
run: rm -f ~/.npmrc
|
||||
|
||||
- name: Check for license warnings
|
||||
run: |
|
||||
|
||||
8
.github/workflows/testdriver.yml
vendored
8
.github/workflows/testdriver.yml
vendored
@@ -132,10 +132,6 @@ jobs:
|
||||
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
|
||||
with:
|
||||
cache: 'npm'
|
||||
|
||||
- name: Configure npm with token (if available)
|
||||
if: secrets.NPM_TOKEN != ''
|
||||
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
|
||||
|
||||
- name: Run TestDriver.ai
|
||||
uses: testdriverai/action@f0d0f45fdd684db628baa843fe9313f3ca3a8aa8 #1.1.3
|
||||
@@ -152,10 +148,6 @@ jobs:
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
FORCE_COLOR: "3"
|
||||
|
||||
- name: Clean up npmrc
|
||||
if: always() && secrets.NPM_TOKEN != ''
|
||||
run: rm -f ~/.npmrc
|
||||
|
||||
cleanup:
|
||||
needs: [deploy, test]
|
||||
|
||||
Reference in New Issue
Block a user