Skip to content

Refactor: update dependencies and fix code #2

Refactor: update dependencies and fix code

Refactor: update dependencies and fix code #2

Workflow file for this run

name: Build
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
lint-and-build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20'
- name: Install Yarn
run: yarn install
- name: Lint code
run: yarn lint
- name: Build code
run: yarn build
docker-build:
runs-on: ubuntu-latest
needs: lint-and-build
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build Docker image
run: |
docker build -t your-project-name:latest .