Merge pull request #95 from OudomMunint/dev #90
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@v4 | |
- name: Install Node.js latest | |
uses: actions/setup-node@v4 | |
with: | |
node-version: latest | |
check-latest: true | |
- name: Install dependencies | |
run: npm ci | |
- name: Run ESLint | |
run: npx eslint --no-error-on-unmatched-pattern. | |
- name: Run all tests | |
run: npm run test | |
- name: Generate build | |
env: | |
CI: false | |
run: npm run build | |
# Share artifact | |
- name: Share artifact inside workflow | |
uses: actions/upload-artifact@v4 | |
with: | |
name: react-github-actions-build | |
path: build | |
- name: Create Release | |
uses: ncipollo/release-action@v1.14.0 | |
with: | |
artifacts: "react-github-actions-build" | |
tag: v1.5.5.1 |