Skip to content

Feature/jc 627 blackjack by dice #14

Feature/jc 627 blackjack by dice

Feature/jc 627 blackjack by dice #14

Workflow file for this run

name: Deploy PR previews
on:
pull_request:
types:
- opened
- reopened
- synchronize
- closed
concurrency: preview-${{ github.ref }}
jobs:
deploy-preview:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Install nodejs
uses: actions/setup-node@v3
with:
node-version-file: "/package.json"
- name: Install and Build
run: |
npm ci
PR_NUMBER=$(echo $GITHUB_REF | awk 'BEGIN { FS = "/" } ; { print $3 }')
REPO_NAME=camp-js-2024-maxim-sherstkov
npm run vanilla:build -- --base=/$REPO_NAME/pr-preview/pr-$PR_NUMBER/
- name: Deploy preview
uses: rossjrw/pr-preview-action@v1
with:
source-dir: dist/apps/vanilla