Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(ci): Add manual workflow trigger with Node.js version parameter #109

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.print_tags || 18 }}
seanpoulter marked this conversation as resolved.
Show resolved Hide resolved
- name: Install Dependencies
run: npm ci
env:
Expand All @@ -44,4 +56,3 @@ jobs:
with:
name: screenshots
path: test/screenshots

Loading