This repository has been archived by the owner on Oct 28, 2023. It is now read-only.
archive notice #19
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: CI | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
cache: npm | |
- name: Install dependencies | |
run: npm install | |
- name: Build project | |
run: | | |
export REACT_APP_CONTAINERUP_VERSION=${GITHUB_REF_NAME} | |
export REACT_APP_CONTAINERUP_BUILD=$(date -u +%Y%m%d%H%M%S) | |
export REACT_APP_CONTAINERUP_COMMIT=${GITHUB_SHA::7} | |
echo BUILD=${REACT_APP_CONTAINERUP_BUILD} | |
echo COMMIT=${REACT_APP_CONTAINERUP_COMMIT} | |
npm run build |