Merge pull request #16 from thunderstore-io/phasmophobia #36
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
on: | |
push: | |
branches: | |
- "master" | |
jobs: | |
deploy: | |
name: "Deploy" | |
runs-on: "ubuntu-latest" | |
environment: | |
name: "Dev" | |
url: ${{ vars.DEPLOY_API_URL }} | |
defaults: | |
run: | |
working-directory: "games" | |
steps: | |
- uses: "actions/checkout@v3" | |
- uses: "actions/setup-node@v3" | |
with: | |
# 18.19 breaks the build due to | |
# https://github.com/TypeStrong/ts-node/issues/2094 | |
node-version: "18.18" | |
cache-dependency-path: "games/yarn.lock" | |
- name: "Install dependencies" | |
run: "yarn install --frozen-lockfile" | |
- name: "Build" | |
run: "yarn run build" | |
- name: "Deploy" | |
run: "yarn run deploy" | |
env: | |
DEPLOY_API_URL: ${{ vars.DEPLOY_API_URL }} | |
DEPLOY_API_KEY: ${{ secrets.DEPLOY_API_KEY }} |