Merge pull request #49 from just-breathing/uiissues #70
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.5 |