Skip to content

Commit 4e5412f

Browse files
authored
Create main.yml
1 parent 9ee45e2 commit 4e5412f

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/main.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# This is a basic workflow to help you get started with Actions
2+
3+
name: Build and Release
4+
5+
# Controls when the workflow will run
6+
on:
7+
# Triggers the workflow on push or pull request events but only for the master branch
8+
push:
9+
branches: [ master ]
10+
pull_request:
11+
branches: [ master ]
12+
13+
# Allows you to run this workflow manually from the Actions tab
14+
workflow_dispatch:
15+
inputs:
16+
logLevel:
17+
description: 'tag number'
18+
required: true
19+
20+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
21+
jobs:
22+
# This workflow contains a single job called "build"
23+
build:
24+
# The type of runner that the job will run on
25+
runs-on: ubuntu-latest
26+
27+
# Steps represent a sequence of tasks that will be executed as part of the job
28+
steps:
29+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
30+
- uses: actions/checkout@v2
31+
32+
# Runs a single command using the runners shell
33+
- name: Install Npm dependencies
34+
run: npm install
35+
36+
# Runs a set of commands using the runners shell
37+
- name: Npm build
38+
run: |
39+
export NODE_OPTIONS=--openssl-legacy-provider
40+
npm build

0 commit comments

Comments
 (0)