Skip to content

Commit 5863877

Browse files
author
Nir Galon
committed
Update dependencies and add GitHub CD
1 parent 8f6673b commit 5863877

File tree

7 files changed

+82
-17
lines changed

7 files changed

+82
-17
lines changed

.github/workflows/cd.yml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
name: Continuous Deployment
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: actions/setup-node@v1
13+
with:
14+
node-version: 12
15+
16+
- name: install dependencies
17+
run: |
18+
npm install
19+
20+
- name: check lint errors
21+
run: |
22+
npm run prepublishOnly
23+
npm run pretest
24+
npm run precommit
25+
26+
- name: run tests
27+
run: |
28+
npm run test
29+
30+
- uses: codecov/codecov-action@v1
31+
with:
32+
token: ${{ secrets.CODECOV_TOKEN }}
33+
fail_ci_if_error: true
34+
35+
- name: generate project
36+
run: |
37+
npm install -g yo
38+
npm link
39+
mkdir app
40+
yo jekyll-starter-kit
41+
42+
publish-npm:
43+
needs: build
44+
runs-on: ubuntu-latest
45+
steps:
46+
- uses: actions/checkout@v2
47+
- uses: actions/setup-node@v1
48+
with:
49+
node-version: 12
50+
registry-url: https://registry.npmjs.org/
51+
- run: npm ci
52+
- run: npm publish
53+
env:
54+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
55+
56+
publish-gpr:
57+
needs: build
58+
runs-on: ubuntu-latest
59+
steps:
60+
- uses: actions/checkout@v2
61+
- uses: actions/setup-node@v1
62+
with:
63+
node-version: 12
64+
registry-url: https://npm.pkg.github.com/
65+
- run: npm ci
66+
- run: npm publish
67+
env:
68+
NODE_AUTH_TOKEN: ${{ secrets.GPR_TOKEN }}

.github/workflows/nodejs.yml renamed to .github/workflows/ci.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
name: Node CI
1+
name: Continuous Integration
22

3-
on: [push]
3+
on:
4+
pull_request:
5+
branches:
6+
- master
47

58
jobs:
69
build:

.yo-rc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"promptValues": {
44
"authorName": "nirgn975",
55
"authorEmail": "nir@galon.io",
6-
"authorUrl": "http://www.nirgn.com"
6+
"authorUrl": "https://nir.galon.io"
77
}
88
}
99
}

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2018 nirgn975 <nir@galon.io> (http://www.nirgn.com)
1+
Copyright (c) 2020 nirgn975 <nir@galon.io> (http://nir.galon.io)
22

33
Permission to use, copy, modify, and/or distribute this software for
44
any purpose with or without fee is hereby granted, provided that the

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ Great! Here is how you can install the local generator to test changes.
6060

6161
## Contributors
6262

63-
* [Nir Galon](http://nirgn.com)
64-
* [Roy Segall](http://twitter.com/roysegall)
63+
* [Nir Galon](http://nir.galon.io)
64+
* [Roy Segall](http://twitter.com/roysegalll)
6565
* [Yotam Emergy](http://ydesign.webflow.io/)
6666
* [Carol Ng](https://www.carolkng.com/)
6767

package-lock.json

Lines changed: 4 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"author": {
77
"name": "Nir Galon",
88
"email": "nir@galon.io",
9-
"url": "http://www.nirgn.com"
9+
"url": "http://nir.galon.io"
1010
},
1111
"files": [
1212
"generators"

0 commit comments

Comments
 (0)