Skip to content

Merge pull request #91 from OudomMunint/dev #89

Merge pull request #91 from OudomMunint/dev

Merge pull request #91 from OudomMunint/dev #89

Workflow file for this run

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