-
Notifications
You must be signed in to change notification settings - Fork 1.3k
42 lines (40 loc) · 1.04 KB
/
nightly.yml
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
38
39
40
41
42
name: Nightly
on:
workflow_dispatch:
inputs:
version:
description: Nightly version
required: false
type: string
default: ''
ref:
description: Branch, tag, or SHA to release
required: false
type: string
default: ''
jobs:
nightly:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ inputs.ref }}
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '18.x'
- name: Install dependencies
run: npm install
- name: Build Nightwatch
run: npm run build
- name: Create publishable package 📦
run: npm pack
- name: Release Nightly
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "nightly-${{ inputs.version }}"
title: "Nightly ${{ inputs.version }}"
prerelease: true
files: '*.tgz'