Skip to content

Merge branch 'main' of https://github.com/mole-inc/mole-boilerplate #59

Merge branch 'main' of https://github.com/mole-inc/mole-boilerplate

Merge branch 'main' of https://github.com/mole-inc/mole-boilerplate #59

Workflow file for this run

name: Build
on:
push:
branches:
- main
env:
PNPM_VERSION: '6.15.0'
NODE_VERSION: '15.1.0'
jobs:
build:
runs-on: ubuntu-latest
name: tsc
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: ${{ env.NODE_VERSION }}
- run: npm cache clean --force
- name: Intall pnpm
uses: pnpm/[email protected]
with:
version: ${{ env.PNPM_VERSION }}
run_install: |
- recursive: false
args: [--shamefully-hoist]
- name: Init and build
run: |
pnpm install
pnpm run build
- name: Setting git
run: |
git config --local user.email ${{ secrets.GIT_MAIL }}
git config --local user.name ${{ secrets.GIT_NAME }}
- name: Commit build result
run: |
git add -N .
if ! git diff --exit-code --quiet
then
git add .
git commit -m "ci: build "
git pull
git push origin ${GITHUB_REF#refs/heads/}
fi