This repository has been archived by the owner on Feb 4, 2024. It is now read-only.
Bump json5 from 2.2.0 to 2.2.3 #29
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |