Skip to content
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 #16

Bump json5 from 2.2.0 to 2.2.3

Bump json5 from 2.2.0 to 2.2.3 #16

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@v2
- uses: actions/setup-node@v1
with:
node-version: 16.x
- run: yarn install --check-cache
build:
name: "Build on JNode.JS 16.x"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 16.x
- run: yarn install
- run: yarn run build
- uses: actions/upload-artifact@v2
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@v2
- uses: actions/download-artifact@v2
with:
name: "Frontend Application"
path: "dist/"
- name: "Set up Docker Buildx"
uses: docker/setup-buildx-action@v1
- name: "Login to GHCR"
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: "Build and push"
uses: docker/build-push-action@v2
with:
push: true
context: .
tags: ghcr.io/heapy/kotlin_jobs:main