Skip to content

Bump @types/node from 20.12.12 to 20.14.9 #264

Bump @types/node from 20.12.12 to 20.14.9

Bump @types/node from 20.12.12 to 20.14.9 #264

Workflow file for this run

name: Format
on:
pull_request:
branches: [main, devops/qa-testing]
push:
branches: [main, devops/qa-testing]
jobs:
format:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
token: ${{ secrets.ACTIONS_TOKEN }}
- uses: actions/setup-node@v3
with:
node-version: '20.x'
token: ${{ secrets.ACTIONS_TOKEN }}
- run: npm ci
- run: npm run format
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Apply formatting changes
branch: ${{ github.head_ref }}
- name: Login to Docker
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
push: true
tags: ${{ secrets.DOCKER_USERNAME }}/job-bank:${{ github.sha }}
# - name: Notify failure
# if: failure()
# uses: actions/github-script@v4
# with:
# github-token: ${{ secrets.ACTIONS_TOKEN }}
# script: |
# github.issues.createComment({
# issue_number: context.issue.number,
# owner: context.repo.owner,
# repo: context.repo.repo,
# body: 'Formatting failed. Please check the logs.'
# })