Skip to content

build: change npm package name to scoped #158

build: change npm package name to scoped

build: change npm package name to scoped #158

Workflow file for this run

---
name: Stage
on:
workflow_dispatch:
push:
branches:
- master
paths:
- src/**
- Dockerfile
- package.json
- package-lock.json
concurrency:
group: stage-project
cancel-in-progress: true
jobs:
code:
runs-on: ubuntu-latest
name: Test project
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install node 20
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
# required for testing
- name: Configure git
run: |
git config --global user.name "${{ github.actor }}"
git config --global user.email "${{ github.actor }}@users.noreply.github.com"
- name: Install project modules
run: npm ci
- name: Lint source files
run: npm run lint
- name: Run unit tests
run: npm test
image:
runs-on: ubuntu-latest
needs: [code]
name: Build image
steps:
- name: Setup docker buildx
uses: docker/setup-buildx-action@v3
- name: Build image
uses: docker/build-push-action@v5
with:
tags: tomerfi/version-bumper:staging
cache-from: type=gha
cache-to: type=gha,mode=max
load: true