Skip to content

Updating build badge #57

Updating build badge

Updating build badge #57

Workflow file for this run

name: Build
on:
push:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- name: Checkout
uses: actions/checkout@v3
with:
token: ${{ secrets.CI_TOKEN }}
submodules: true
lfs: true
- name: Update submodules
run: |
git submodule update --remote --recursive
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- name: get-npm-version
id: package-version
uses: martinbeentjes/npm-get-version-action@v1.3.1
- name: Run build
env:
BUILD_NUMBER: ${{ github.run_number }}
run: npm run build --if-present
- run: npm test --if-present
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: jimakun-percheckin-v${{ steps.package-version.outputs.current-version }}.${{ github.run_number }}
path: |
dist