ci #6
This commit is contained in:
parent
2c711a2204
commit
59b8c629d7
1 changed files with 21 additions and 23 deletions
44
.github/workflows/main.yml
vendored
44
.github/workflows/main.yml
vendored
|
|
@ -46,6 +46,8 @@ env:
|
||||||
DOCKERHUB_SLUG: arabcoders/ytptube
|
DOCKERHUB_SLUG: arabcoders/ytptube
|
||||||
GHCR_SLUG: ghcr.io/arabcoders/ytptube
|
GHCR_SLUG: ghcr.io/arabcoders/ytptube
|
||||||
PLATFORMS: linux/amd64
|
PLATFORMS: linux/amd64
|
||||||
|
PNPM_VERSION: 10
|
||||||
|
NODE_VERSION: 20
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-pr:
|
build-pr:
|
||||||
|
|
@ -55,24 +57,23 @@ jobs:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install Node.js
|
|
||||||
uses: actions/setup-node@v4
|
|
||||||
with:
|
|
||||||
node-version: 20
|
|
||||||
|
|
||||||
- name: Install pnpm
|
- name: Install pnpm
|
||||||
uses: pnpm/action-setup@v4
|
uses: pnpm/action-setup@v4
|
||||||
with:
|
with:
|
||||||
version: 10
|
version: ${{ env.PNPM_VERSION }}
|
||||||
run_install: false
|
|
||||||
|
|
||||||
- name: Install frontend dependencies
|
- name: Install Node.js
|
||||||
working-directory: ui
|
uses: actions/setup-node@v4
|
||||||
run: pnpm install --production --prefer-offline --frozen-lockfile
|
with:
|
||||||
|
node-version: ${{ env.NODE_VERSION }}
|
||||||
|
cache: pnpm
|
||||||
|
cache-dependency-path: 'ui/pnpm-lock.yaml'
|
||||||
|
|
||||||
- name: Build frontend
|
- name: Install frontend dependencies & Build
|
||||||
working-directory: ui
|
working-directory: ui
|
||||||
run: pnpm run generate
|
run: |
|
||||||
|
pnpm install --production --prefer-offline --frozen-lockfile
|
||||||
|
pnpm run generate
|
||||||
|
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@v3
|
uses: docker/setup-qemu-action@v3
|
||||||
|
|
@ -102,23 +103,20 @@ jobs:
|
||||||
- name: Install pnpm
|
- name: Install pnpm
|
||||||
uses: pnpm/action-setup@v4
|
uses: pnpm/action-setup@v4
|
||||||
with:
|
with:
|
||||||
version: 10
|
version: ${{ env.PNPM_VERSION }}
|
||||||
run_install: false
|
|
||||||
|
|
||||||
- name: Install Node.js
|
- name: Install Node.js
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
cache-dependency-path: './ui/pnpm-lock.yaml'
|
node-version: ${{ env.NODE_VERSION }}
|
||||||
node-version: 20
|
cache: pnpm
|
||||||
cache: "pnpm"
|
cache-dependency-path: 'ui/pnpm-lock.yaml'
|
||||||
|
|
||||||
- name: Install frontend dependencies
|
- name: Install frontend dependencies & Build
|
||||||
working-directory: ui
|
working-directory: ui
|
||||||
run: pnpm install --production --prefer-offline --frozen-lockfile
|
run: |
|
||||||
|
pnpm install --production --prefer-offline --frozen-lockfile
|
||||||
- name: Build frontend
|
pnpm run generate
|
||||||
working-directory: ui
|
|
||||||
run: pnpm run generate
|
|
||||||
|
|
||||||
- name: Update Version File
|
- name: Update Version File
|
||||||
uses: ArabCoders/write-version-to-file@master
|
uses: ArabCoders/write-version-to-file@master
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue