File tree Expand file tree Collapse file tree 4 files changed +43
-43
lines changed Expand file tree Collapse file tree 4 files changed +43
-43
lines changed Original file line number Diff line number Diff line change @@ -11,36 +11,43 @@ jobs:
11
11
steps :
12
12
- name : Checkout Code
13
13
uses : actions/checkout@v2
14
+
14
15
- name : Automated Version Bump
15
16
16
17
env :
17
- GITHUB_USER : ${{secrets.CI_NAME}}
18
- GITHUB_EMAIL : ${{secrets.CI_EMAIL}}
18
+ GITHUB_USER : ${{ secrets.CI_NAME }}
19
+ GITHUB_EMAIL : ${{ secrets.CI_EMAIL }}
19
20
20
21
publish-npm :
21
22
needs : bump-version
22
23
runs-on : ubuntu-latest
23
24
steps :
25
+ - name : Checkout Code
24
26
- uses : actions/checkout@v2
27
+
28
+ - name : Set up Node.js
25
29
- uses : actions/setup-node@v1
26
30
with :
27
31
node-version : 12
28
32
registry-url : https://registry.npmjs.org/
29
33
- run : npm ci
30
34
- run : npm publish
31
35
env :
32
- NODE_AUTH_TOKEN : ${{secrets.NPM_TOKEN}}
36
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
33
37
34
38
publish-gpr :
35
39
needs : bump-version
36
40
runs-on : ubuntu-latest
37
41
steps :
42
+ - name : Checkout Code
38
43
- uses : actions/checkout@v2
44
+
45
+ - name : Set up Node.js
39
46
- uses : actions/setup-node@v1
40
47
with :
41
48
node-version : 12
42
49
registry-url : https://npm.pkg.github.com/
43
50
- run : npm ci
44
51
- run : npm publish
45
52
env :
46
- NODE_AUTH_TOKEN : ${{secrets.GITHUB_TOKEN}}
53
+ NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change
1
+ name : Gh Pages
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - " master"
7
+
8
+ jobs :
9
+ build-and-deploy :
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - name : Checkout Code
13
+ uses : actions/checkout@v2
14
+
15
+ - name : Install
16
+ run : npm install
17
+
18
+ - name : Build
19
+ run : npm run build:example
20
+
21
+ - name : Deploy
22
+ uses : peaceiris/actions-gh-pages@v3
23
+ with :
24
+ github_token : ${{ secrets.GITHUB_TOKEN }}
25
+ publish_dir : ./example-dist
26
+ user_name : ${{ secrets.CI_NAME }}
27
+ user_email : ${{ secrets.CI_EMAIL }}
Original file line number Diff line number Diff line change 15
15
uses : actions/setup-node@v1
16
16
with :
17
17
node-version : 12
18
- - run : npm install
19
- - run : npm run lint
18
+
19
+ - name : Lint
20
+ run : |
21
+ npm install
22
+ npm run lint
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments