Skip to content
This repository has been archived by the owner on Oct 28, 2023. It is now read-only.

Commit

Permalink
add commit hash output to the release workflow, and enable npm cache
Browse files Browse the repository at this point in the history
  • Loading branch information
yylyyl committed Sep 25, 2023
1 parent 7de4992 commit 2b27639
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ on:
jobs:
build:
runs-on: ubuntu-latest
outputs:
COMMIT: ${{ steps.build.outputs.COMMIT }}
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -29,12 +31,13 @@ jobs:
- name: Install dependencies
run: npm install
- name: Build project
id: build
run: |
COMMIT=$(git rev-parse --short HEAD)
export REACT_APP_CONTAINERUP_BUILD=${BUILD_NUM}
export REACT_APP_CONTAINERUP_COMMIT=${COMMIT}
echo BUILD=${REACT_APP_CONTAINERUP_BUILD}
echo COMMIT=${REACT_APP_CONTAINERUP_COMMIT}
echo REACT_APP_CONTAINERUP_BUILD=${BUILD_NUM}
echo REACT_APP_CONTAINERUP_COMMIT=${COMMIT}
echo "COMMIT=${COMMIT}" >> ${GITHUB_OUTPUT}
npm run build
env:
Expand Down

0 comments on commit 2b27639

Please sign in to comment.