Skip to content

Merge pull request #29 from 91khr/main #59

Merge pull request #29 from 91khr/main

Merge pull request #29 from 91khr/main #59

Workflow file for this run

name: Build
on:
push:
branches:
- main
pull_request:
branches:
- main
- 'releases/**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: 18
- run: npm install
- run: npm run build
# - name: Configure Git # 配置Git
# env:
# DEPLOY_PRI: ${{ secrets.DEPLOY_PRI }}
# GIT_USERNAME: Bot
# GIT_EMAIL: ${{ github.repository_owner }}@user.github.com
# run: |
# sudo timedatectl set-timezone "Asia/Shanghai"
# mkdir -p ~/.ssh/
# echo "$DEPLOY_PRI" > ~/.ssh/id_rsa
# chmod 600 ~/.ssh/id_rsa
# ssh-keyscan github.com >> ~/.ssh/known_hosts
# git config --global user.name '$DEPLOY_PRI'
# git config --global user.email '$DEPLOY_PRI'
# - name: Update package-lock.json
# run: |
# git add package-lock.json
# git commit -m "Auto Update package-lock" --no-verify
# git push origin main