Skip to content

Commit

Permalink
feat(ci): add a ci for all branches and pr
Browse files Browse the repository at this point in the history
  • Loading branch information
bigbrozer committed May 27, 2023
1 parent 53342b6 commit fd082b6
Show file tree
Hide file tree
Showing 7 changed files with 11,385 additions and 246 deletions.
4 changes: 4 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.github/ export-ignore
.release-it.json export-ignore
package*.json export-ignore
.git* export-ignore
29 changes: 29 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: "CI"

on:
push:
branches:
- "**"
pull_request:
branches:
- "**"

jobs:
build:
name: "Build"
runs-on: "ubuntu-22.04"

steps:
- uses: "actions/checkout@v3"

- name: "Use Node.js 20.x"
uses: "actions/setup-node@v3"
with:
node-version: "20.x"
cache: "npm"

- name: "Install dependencies"
run: "npm ci"

- name: "Compile SCSS"
run: "npm run build-scss"
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/dist/
/node_modules/
.DS_Store
/assets/css/main.css
Expand Down
19 changes: 19 additions & 0 deletions .release-it.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"git": {
"commitMessage": "chore: release v${version}"
},
"github": {
"release": true,
"releaseName": "publii-luci-theme v${version}"
},
"npm": {
"publish": false
},
"plugins": {
"@release-it/conventional-changelog": {
"preset": "conventionalcommits",
"infile": "CHANGELOG.md",
"header": "# Changelog"
}
}
}
Loading

0 comments on commit fd082b6

Please sign in to comment.