forked from kriskbx/gitlab-time-tracker
-
Notifications
You must be signed in to change notification settings - Fork 2
37 lines (35 loc) · 774 Bytes
/
npmci.yml
File metadata and controls
37 lines (35 loc) · 774 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# This workflow will run tests using node and then build articats
name: npm CI
on:
workflow_dispatch:
inputs:
publishbuilds:
required: false
description: Publish Builds?
type: boolean
default: false
pull_request:
branches:
- main
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
- run: npm test
- run: npm run-script build
- name: publish
if: inputs.publishbuilds
uses: actions/upload-artifact@v4
with:
name: ${{ github.ref_name }}
path: |
out/gtt-*
dist/gtt.cjs