-
-
Notifications
You must be signed in to change notification settings - Fork 60
27 lines (27 loc) · 875 Bytes
/
Copy pathbuild.yml
File metadata and controls
27 lines (27 loc) · 875 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
name: Build
on:
push:
pull_request :
permissions:
pull-requests: write # grant write permission on the pull-requests endpoint
jobs:
Build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Get branch name
id: branch-name
uses: tj-actions/branch-names@v9.0.0
- name: Install dependencies
run: npm install
- name: Build development environment
run: npm run build
- name: Auto commit changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
branch: ${{ steps.branch-name.outputs.current_branch }}
commit_message: "build(Minify): Minify CSS/JavaScript [skip actions]"
commit_user_name: webfashionist
commit_user_email: info@webfashion.in
commit_author: webfashionist <info@webfashion.in>