Skip to content

Commit

Permalink
(ci): Add manual workflow trigger with Node.js version parameter (#109)
Browse files Browse the repository at this point in the history
* Add manual trigger to choose Node.js version

* Update .github/workflows/ci.yml

Co-authored-by: Christian Bromann <[email protected]>

* Update .github/workflows/ci.yml

---------

Co-authored-by: Christian Bromann <[email protected]>
  • Loading branch information
seanpoulter and christian-bromann authored Feb 20, 2024
1 parent 778b34a commit c2b520a
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
name: CI

on:
Expand All @@ -7,6 +8,17 @@ on:
tags:
- v[0-9]+.[0-9]+.[0-9]+*
pull_request:
workflow_dispatch:
inputs:
node_version:
description: 'Node.js version'
required: true
default: 18
type: choice
options:
- 16
- 18
- 20

jobs:
build:
Expand All @@ -25,7 +37,7 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: 18
node-version: ${{ inputs.node_version || 18 }}
- name: Install Dependencies
run: npm ci
env:
Expand All @@ -44,4 +56,3 @@ jobs:
with:
name: screenshots
path: test/screenshots

0 comments on commit c2b520a

Please sign in to comment.