Skip to content

Commit

Permalink
Adds CI, renames command to build
Browse files Browse the repository at this point in the history
  • Loading branch information
mattxwang committed Feb 15, 2023
1 parent 512126b commit 912cd0b
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 2 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Build

on:
push:
branches: [ main ]
paths-ignore:
- '**/README.md'
pull_request:
branches: [ main ]
paths-ignore:
- '**/README.md'

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x]

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run build
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ To generate the files as-is:

```
$ npm install
$ npm run gen
$ npm run build
```

To generate other atom themes, replace the `colors.less` with the corresponding theme's `color.less`.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "1.0.0",
"description": "Packaging Atom's one-light theme for Jekyll usage",
"scripts": {
"gen": "lessc syntax.less dist/syntax.css --clean-css"
"build": "lessc syntax.less dist/syntax.css --clean-css"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 912cd0b

Please sign in to comment.