mirror of
https://git.mirrors.martin98.com/https://github.com/sub-store-org/Sub-Store.git
synced 2025-08-21 14:09:07 +08:00
37 lines
868 B
YAML
37 lines
868 B
YAML
name: update
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
- dev
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
- dev
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
with:
|
|
ref: 'master'
|
|
- name: Set up Node.js
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: "14"
|
|
- name: Install dependencies
|
|
run: cd backend && npm i
|
|
- name: Test
|
|
run: cd backend && npm test
|
|
- name: Build
|
|
run: cd backend && npm run build
|
|
- name: Commit changes
|
|
if: contains(github.event.head_commit.message, '#build')
|
|
run: |
|
|
git config user.email github-actions
|
|
git config user.name github-actions@github.com
|
|
git add .
|
|
git commit -m "Build sub-store.min.js" -a
|
|
git push
|