Skip to content

feat(06): desktop application via electron #21

feat(06): desktop application via electron

feat(06): desktop application via electron #21

Workflow file for this run

name: backend
on:
push:
branches: [ main ]
permissions:
packages: write
contents: read
id-token: write
defaults:
run:
working-directory: backend
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: yarn
cache-dependency-path: ./backend/yarn.lock
- name: Install dependencies
run: |
yarn install --frozen-lockfile
- name: Check grammar
run: |
yarn typecheck
build:
needs: test
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ vars.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push docker image
uses: docker/build-push-action@v6
with:
context: ./backend
push: true
tags: |
ghcr.io/${{ vars.DOCKER_TAG }}
${{ vars.DOCKER_TAG }}