fix: msw 핸들러에 couponId가 있는 경우 추가 #18
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: NodeJS with Webpack | |
on: | |
push: | |
branches: ['step1', 'step2'] | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
# Github Repository Secrets를 통해 환경 변수 파일을 생성합니다. | |
- name: Generate Environment Variables File for Production | |
run: | | |
echo "REACT_APP_API_FOX=$REACT_APP_API_FOX" >> .env | |
echo "REACT_APP_API_LUKU=$REACT_APP_API_LUKU" >> .env | |
echo "REACT_APP_USER_EMAIL=$REACT_APP_USER_EMAIL" >> .env | |
echo "REACT_APP_USER_PASSWORD=$REACT_APP_USER_PASSWORD" >> .env | |
env: | |
REACT_APP_API_FOX: ${{ secrets.REACT_APP_API_FOX }} | |
REACT_APP_API_LUKU: ${{ secrets.REACT_APP_API_LUKU }} | |
REACT_APP_USER_EMAIL: ${{ secrets.REACT_APP_USER_EMAIL }} | |
REACT_APP_USER_PASSWORD: ${{ secrets.REACT_APP_USER_PASSWORD }} | |
- uses: actions/cache@v3 | |
id: cache | |
with: | |
path: '**/node_modules' | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node- | |
- run: npm ci | |
if: steps.cache.outputs.cache-hit != 'true' | |
- run: npm run build | |
- uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./build |