Skip to content

Commit 1967949

Browse files
committed
ci(github): add lint-source workflow, rename GitHub Workflow Status badge to Lint Status
1 parent ff5d050 commit 1967949

File tree

3 files changed

+22
-2
lines changed

3 files changed

+22
-2
lines changed

.github/workflows/lint-source.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: lint-source
2+
3+
on: push
4+
5+
jobs:
6+
lint-source:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- uses: actions/setup-node@v1
11+
with:
12+
node-version: 12
13+
registry-url: https://registry.npmjs.org
14+
- name: Install dependencies
15+
run: yarn
16+
- name: Check code style
17+
run: yarn format:check
18+
- name: Check code quality
19+
run: yarn lint

.github/workflows/publish-npm.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,5 @@ jobs:
1717
- name: Publish package
1818
run: yarn publish --access public
1919
env:
20+
# Create your own token at https://github.com/organization/repository/settings/secrets
2021
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
<a href="https://github.com/boringcodes/create-dotgithub" aria-label="Prettier Code Style">
1010
<img src="https://img.shields.io/badge/code_style-prettier-brightgreen?style=flat-square">
1111
</a>
12-
<a href="https://github.com/boringcodes/create-dotgithub/actions" aria-label="GitHub Workflow Status">
13-
<img src="https://img.shields.io/github/workflow/status/boringcodes/create-dotgithub/publish-npm?style=flat-square">
12+
<a href="https://github.com/boringcodes/create-dotgithub/actions" aria-label="Lint Status">
13+
<img src="https://img.shields.io/github/workflow/status/boringcodes/create-dotgithub/lint-source?style=flat-square&label=lint">
1414
</a>
1515
<a href="https://david-dm.org/boringcodes/create-dotgithub" aria-label="Dependencies Status">
1616
<img src="https://img.shields.io/david/boringcodes/create-dotgithub?style=flat-square">

0 commit comments

Comments
 (0)