-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (36 loc) · 921 Bytes
/
main.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
name: PROD Build + Release
on:
push:
tags:
- '*'
branches:
- main
jobs:
Prod-Build:
runs-on: ubuntu-latest
steps:
- name: Checkout PROD
uses: actions/checkout@v2
- name: Use Node.js 18.x
uses: actions/setup-node@v2
with:
node-version: 18.x
- name: Install dependencies
run: npm install
- name: Run ESLint
run: npx eslint --no-error-on-unmatched-pattern .
- name: Generate build
env:
CI: false
run: npm run build
# Share artifact inside workflow
- name: Share artifact inside workflow
uses: actions/upload-artifact@v2
with:
name: react-github-actions-build
path: build
- name: Create Release
uses: ncipollo/release-action@v1.12.0
with:
artifacts: "react-github-actions-build"
tag: v1.5.3.4