From 30b05823fe4566bfd86594252f46ede7e9bb7f55 Mon Sep 17 00:00:00 2001 From: got2bhockey Date: Fri, 8 Jan 2021 16:43:45 -0500 Subject: [PATCH 1/2] Added workflow --- .github/workflows/main.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..b8d8f85 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,32 @@ +name: Build Yarn docs & lint source code +on: push + +jobs: + run: + name: Lint and build templates + runs-on: ubuntu-latest + steps: + - name: Checkout repo + uses: actions/checkout@v2 + + - name: Set up Node.js + uses: actions/setup-node@v2 + with: + node-version: '14' + check-latest: true + + - name: Install dependencies + run: yarn install + + - name: Build all docs + run: yarn run build-all + + - name: Update source code + run: yarn run eslint . --fix + + - name: Commit changes + uses: EndBug/add-and-commit@v6 + with: + message: 'ESLint & README Generation' + add: '.' + From 5b3e6a909c4f24fc1ce9246cdd3bf71850136bc0 Mon Sep 17 00:00:00 2001 From: got2bhockey Date: Fri, 8 Jan 2021 17:13:31 -0500 Subject: [PATCH 2/2] Update lint to use package.json command --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b8d8f85..2394e19 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -22,7 +22,7 @@ jobs: run: yarn run build-all - name: Update source code - run: yarn run eslint . --fix + run: yarn run lint - name: Commit changes uses: EndBug/add-and-commit@v6