Skip to content

Commit

Permalink
CI: Adds build step to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Mintoo200 authored Mar 14, 2024
2 parents 8a41200 + bee10d0 commit fff2466
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
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 }}
path: ./dist
if-no-files-found: error

0 comments on commit fff2466

Please sign in to comment.