Skip to content

Build

Build #291

Workflow file for this run

name: Build
on:
push:
branches:
- main
workflow_dispatch:
schedule:
- cron: '35 0 * * *'
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16
- name: Install pnpm
uses: pnpm/action-setup@v2.2.2
with:
version: 7.9.5
run_install: false
- name: Get pnpm store directory path
id: pnpm-store-dir-path
run: echo "::set-output name=dir::$(pnpm store path)"
- name: Setup pnpm store cache
uses: actions/cache@v3
id: pnpm-store-cache
with:
path: ${{ steps.pnpm-store-dir-path.outputs.dir }}
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-
- name: Install dependencies
run: pnpm install
- name: Build
run: pnpm start
env:
GH_LOGIN: ${{ secrets.GH_LOGIN }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_LOGIN: ${{ secrets.NPM_LOGIN }}
- name: Commit changes
run: |-
git config user.name "HiDeooBot"
git config user.email "actions@users.noreply.github.com"
git add -A
git commit -m "docs(build): update readme" || exit 0
git push