This repository was archived by the owner on Dec 21, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 97
43 lines (40 loc) · 1.6 KB
/
CreateWebRelease.yml
File metadata and controls
43 lines (40 loc) · 1.6 KB
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
43
name: Create web release
on:
workflow_dispatch:
inputs:
widget-name:
description: "Web Widget/Module to release"
required: true
jobs:
release:
name: "Create web widget/module release"
runs-on: ubuntu-latest
steps:
- name: "Checking-out code"
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2
with:
submodules: false
- name: "Defining node version"
uses: actions/setup-node@1f8c6b94b26d0feae1e387ca63ccbdc44d27b561 # v2
with:
node-version-file: ".nvmrc"
- name: "Installing dependencies"
run: npm install
- name: "Building ${{ github.event.inputs.widget-name }}"
run: "npm run release -- --scope '${{ github.event.inputs.widget-name }}'"
- name: "Creating ${{ github.event.inputs.widget-name }} widget release"
if: ${{ endsWith(github.event.inputs.widget-name, '-web') }}
run: "npm run release-github:widget '${{ github.event.inputs.widget-name }}'"
env:
GH_USERNAME: ${{ secrets.GH_USERNAME }}
GH_EMAIL: ${{ secrets.GH_EMAIL }}
GH_NAME: ${{ secrets.GH_NAME }}
GH_PAT: ${{ secrets.GH_PAT }}
- name: "Creating ${{ github.event.inputs.widget-name }} module release"
if: ${{ !endsWith(github.event.inputs.widget-name, '-web') }}
run: "npm run create-modules:web '${{ github.event.inputs.widget-name }}'"
env:
GH_USERNAME: ${{ secrets.GH_USERNAME }}
GH_EMAIL: ${{ secrets.GH_EMAIL }}
GH_NAME: ${{ secrets.GH_NAME }}
GH_PAT: ${{ secrets.GH_PAT }}