Skip to content

CI: Adds artifact upload to build #2

CI: Adds artifact upload to build

CI: Adds artifact upload to build #2

Workflow file for this run

name: 'Run tests'
on: [push, workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
# TODO: add version to a .nvmrc or at least a variable
node-version: 18.12.1
cache: npm
- name: Install
run: npm ci
- name: Build
run: npm run build
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: lib-${{ GITHUB_SHA }}

Check failure on line 24 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / Run tests

Invalid workflow file

The workflow is not valid. .github/workflows/build.yml (Line: 24, Col: 17): Unrecognized named-value: 'GITHUB_SHA'. Located at position 1 within expression: GITHUB_SHA
path: ./dist
if-no-files-found: error