Skip to content

Commit 5a0295d

Browse files
committed
ci(:rocket:) github workflows
1 parent f2b152c commit 5a0295d

File tree

7 files changed

+6627
-8066
lines changed

7 files changed

+6627
-8066
lines changed

.github/workflows/on_push.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
on: push
2+
name: Build & Publish Docs
3+
jobs:
4+
build:
5+
runs-on: ubuntu-latest
6+
strategy:
7+
matrix:
8+
node-version: [12.x, 14.x]
9+
steps:
10+
- uses: actions/checkout@v1
11+
- name: Use Node.js ${{ matrix.node-version }}
12+
uses: actions/setup-node@v1
13+
with:
14+
node-version: ${{ matrix.node-version }}
15+
- name: npm install, build, and test
16+
run: |
17+
npm i
18+
npm t
19+
npm run build

.github/workflows/on_release.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Release
2+
on:
3+
release:
4+
types: [released]
5+
jobs:
6+
publish:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v1
10+
- uses: actions/setup-node@v1
11+
with:
12+
node-version: 12
13+
registry-url: https://registry.npmjs.org/
14+
- name: npm install
15+
run: npm i
16+
- name: build
17+
run: npm run build
18+
- name: publish
19+
run: npm publish
20+
env:
21+
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

.github/workflows/stale.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Mark stale issues and pull requests
2+
3+
on:
4+
schedule:
5+
- cron: '0 0 * * *'
6+
7+
jobs:
8+
stale:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/stale@v1
13+
with:
14+
repo-token: ${{ secrets.GITHUB_TOKEN }}
15+
stale-issue-message: 'Stale issue message'
16+
stale-pr-message: 'Stale pull request message'
17+
stale-issue-label: 'no-issue-activity'
18+
stale-pr-label: 'no-pr-activity'

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2019 Dennis Thompson
3+
Copyright (c) 2020 Dennis Thompson
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ npm i react-docgen-typescript @types/react react-ts-docgen typescript --save-dev
1111
yarn add react-docgen-typescript @types/react react-ts-docgen typescript --dev
1212
```
1313

14-
`react-docgen-typescript`, `@types/react`, and `typescript` are all **peer dependencies** of this packae.
14+
`react-docgen-typescript`, `@types/react`, and `typescript` are all **peer dependencies** of this package.
1515

1616
## Usage
1717

0 commit comments

Comments
 (0)