Skip to content

Bump eslint-plugin-prettier from 5.2.1 to 5.2.2 #1909

Bump eslint-plugin-prettier from 5.2.1 to 5.2.2

Bump eslint-plugin-prettier from 5.2.1 to 5.2.2 #1909

Workflow file for this run

name: Node&Docker
on:
push:
branches:
- main
- production
tags:
- v*
pull_request:
branches:
- main
- production
env:
IMAGE_NAME: personal-web
jobs:
build:
runs-on: ubuntu-22.04
strategy:
matrix:
node-version: [20.x, 22.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
registry-url: https://npm.pkg.github.com/
always-auth: true
- name: Install
run: yarn --frozen-lockfile
- name: lint
run: yarn lint
- name: Test & Build
run: |
yarn test
yarn compile
- uses: codecov/codecov-action@v5
name: Codecov
if: ${{ matrix.node-version == '20.x' }}
with:
token: ${{ secrets.CODECOV_TOKEN }} # required
docker-build:
needs: build
runs-on: ubuntu-22.04
if: github.event_name == 'pull_request'
steps:
- uses: actions/checkout@v4
- name: Build image
run: docker build . --file Dockerfile --tag $IMAGE_NAME
# Push image to GitHub Packages.
# See also https://docs.docker.com/docker-hub/builds/
docker-push:
# Ensure test job passes before pushing image.
needs: build
runs-on: ubuntu-22.04
if: github.event_name == 'push'
steps:
- uses: actions/checkout@v4
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: |
bervproject/${{ env.IMAGE_NAME }}
ghcr.io/${{ github.repository }}
- name: Build and push Docker images
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}