Skip to content

Commit

Permalink
move to pnpm for gh actions
Browse files Browse the repository at this point in the history
  • Loading branch information
fuziontech committed Jan 30, 2024
1 parent 21116bf commit 5061f65
Showing 1 changed file with 16 additions and 27 deletions.
43 changes: 16 additions & 27 deletions .github/workflows/docker-frontend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,21 @@ jobs:
runs-on: ubuntu-latest
defaults:
run:
working-directory: 'frontend'
working-directory: "frontend"

permissions:
contents: read
packages: write

steps:
-
uses: actions/checkout@v3
-
name: Set up QEMU
- uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
with:
platforms: arm64
-
name: Set up Docker Buildx
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Docker image metadata
- name: Docker image metadata
id: meta
uses: docker/metadata-action@v4
with:
Expand All @@ -36,33 +32,26 @@ jobs:
type=raw,value=main,enable=${{ github.ref == 'refs/heads/main' }}
type=ref,event=pr
type=sha
-
name: Login to GitHub Container Registry
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Install Node.js
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version-file: frontend/.node-version
cache: 'npm'
cache: "pnpm"
cache-dependency-path: frontend/package-lock.json

-
name: Install dependencies
run: npm install
- name: Install dependencies
run: pnpm i

-
name: Build
run: npm run build
env:
NODE_OPTIONS: --openssl-legacy-provider
- name: Build
run: pnpm build

-
name: Build and push
- name: Build and push
uses: docker/build-push-action@v4
with:
context: frontend/
Expand Down

0 comments on commit 5061f65

Please sign in to comment.