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

Bump semver from 5.7.1 to 5.7.2 (#868) #298

Bump semver from 5.7.1 to 5.7.2 (#868)

Bump semver from 5.7.1 to 5.7.2 (#868) #298

name: Build truthsayer & release it
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- name: Install dependencies
run: yarn install --immutable
- name: Build libs
run: yarn build-libs
- name: Build truthsayer
# This is a little absurd, but CI=true forces React build script to treat
# all warnings as errors. Let's turn it off to unblock the change. Once
# we get rid of all the warnings we can enable CI back.
# https://github.com/facebook/create-react-app/issues/3657
env:
CI: false
run: yarn truthsayer build
- name: Push build output to mazed-dev/truthsayer-release
uses: cpina/github-action-push-to-another-repository@main
env:
SSH_DEPLOY_KEY: ${{ secrets.SSH_DEPLOY_KEY }}
with:
source-directory: 'truthsayer/build'
destination-github-username: 'mazed-dev'
destination-repository-name: 'truthsayer-release'
target-branch: main
user-email: ${{github.event.pusher.email}}
user-name: ${{github.event.pusher.name}}