Skip to content
This repository has been archived by the owner on Feb 4, 2024. It is now read-only.

Bump terser from 5.12.1 to 5.27.0 #40

Bump terser from 5.12.1 to 5.27.0

Bump terser from 5.12.1 to 5.27.0 #40

Workflow file for this run

name: "Build"
on:
push:
pull_request:
jobs:
check:
if: ${{ github.event_name == 'pull_request' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 21.x
- run: yarn install --check-cache
build:
name: "Build on JNode.JS 21.x"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 21.x
- run: yarn install
- run: yarn run build
- uses: actions/upload-artifact@v4
with:
name: "Frontend Application"
path: "dist/"
retention-days: 1
build-and-push-image:
if: ${{ github.ref == 'refs/heads/main' }}
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: "Frontend Application"
path: "dist/"
- name: "Set up Docker Buildx"
uses: docker/setup-buildx-action@v3
- name: "Login to GHCR"
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: "Build and push"
uses: docker/build-push-action@v5
with:
platforms: linux/amd64,linux/arm64
push: true
context: .
tags: ghcr.io/heapy/kotlin_jobs:main