change production node #38
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: Deploy to 'hosting' branch | |
on: | |
push: | |
branches: | |
- develop | |
jobs: | |
deploy: | |
name: Deploy | |
runs-on: ubuntu-22.04 | |
steps: | |
# Checkout | |
- uses: actions/checkout@v3 | |
# Use Node to install dependencies and build | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Install dependencies and build | |
run: | | |
npm ci --legacy-peer-deps | |
npm run build | |
env: | |
CI: false | |
# Deploy to `hosting` branch | |
- name: Deploy to hosting branch | |
uses: s0/git-publish-subdir-action@develop | |
env: | |
REPO: self | |
BRANCH: hosting | |
FOLDER: build | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |