Skip to content

Bump typescript-eslint from 8.32.1 to 8.33.0 #1447

Bump typescript-eslint from 8.32.1 to 8.33.0

Bump typescript-eslint from 8.32.1 to 8.33.0 #1447

Workflow file for this run

name: Docker Image CI
on:
push:
branches:
- master
- 'feature/**'
tags:
- 'v*' # Trigger on version tags like v1.0.0
pull_request:
branches: [ "master" ]
jobs:
sonarcloud:
name: SonarCloud
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
build-and-push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: manuc66/node-hp-scan-to
tags: |
# For version tags like v1.4.3
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=raw,value=latest,enable=${{ startsWith(github.ref, 'refs/tags/v') }}
# For branches
type=ref,event=branch
flavor: |
latest=false
- name: Setup NodeJS
uses: actions/setup-node@v4
with:
node-version: '22.14.0'
cache: 'yarn'
- name: Install project dependencies
run: yarn install --frozen-lockfile
- name: Test
run: yarn test
- name: Build
run: yarn build
- name: cat build
run: cat src/commitInfo.json
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v6
if: github.event_name != 'pull_request'
with:
push: true
platforms: linux/amd64,linux/arm/v7,linux/arm/v8,linux/arm64
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- name: Build Docker image without pushing (PRs only)
if: github.event_name == 'pull_request'
uses: docker/build-push-action@v6
with:
push: false
tags: dummy/test:pr-${{ github.sha }}
publish-npm:
name: Publish to npm
if: startsWith(github.ref, 'refs/tags/v')
needs: build-and-push
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup NodeJS
uses: actions/setup-node@v4
with:
node-version: '22.14.0'
registry-url: 'https://registry.npmjs.org/'
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Test
run: yarn test
- name: Build
run: yarn build
- name: cat build
run: cat src/commitInfo.json
- name: Publish to npm
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}