Skip to content

Commit d05d351

Browse files
committed
fix: Add github action
1 parent 13d875a commit d05d351

File tree

10 files changed

+116
-55
lines changed

10 files changed

+116
-55
lines changed

.github/FUNDING.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# These are supported funding model platforms
2+
3+
github: [romakita]
4+
patreon: # Replace with a single Patreon username
5+
open_collective: tsed
6+
ko_fi: # Replace with a single Ko-fi username
7+
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9+
custom: # Replace with a single custom sponsorship URL

.github/dependabot.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "npm"
4+
directory: "/"
5+
schedule:
6+
interval: "monthly"
7+
assignees:
8+
- "Romakita"
9+
reviewers:
10+
- "Romakita"

.github/stale.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Number of days of inactivity before an issue becomes stale
2+
daysUntilStale: 60
3+
# Number of days of inactivity before a stale issue is closed
4+
daysUntilClose: 7
5+
# Issues with these labels will never be considered stale
6+
exemptLabels:
7+
- pinned
8+
- security
9+
# Label to use when marking an issue as stale
10+
staleLabel: wontfix
11+
# Comment to post when marking an issue as stale. Set to `false` to disable
12+
markComment: >
13+
This issue has been automatically marked as stale because it has not had
14+
recent activity. It will be closed if no further activity occurs. Thank you
15+
for your contributions.
16+
# Comment to post when closing a stale issue. Set to `false` to disable
17+
closeComment: false

.github/workflows/build.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3+
4+
name: Build & Release
5+
6+
on:
7+
push:
8+
pull_request:
9+
branches:
10+
- master
11+
12+
jobs:
13+
lint:
14+
runs-on: ubuntu-latest
15+
strategy:
16+
matrix:
17+
node-version: [ 14.x ]
18+
19+
steps:
20+
- uses: actions/checkout@v2
21+
- name: Use Node.js ${{ matrix.node-version }}
22+
uses: actions/setup-node@v1
23+
with:
24+
node-version: ${{ matrix.node-version }}
25+
- name: Install dependencies
26+
run: yarn install --frozen-lockfile --network-timeout 500000
27+
- name: Run lint
28+
run: yarn test:lint
29+
30+
deploy-packages:
31+
runs-on: ubuntu-latest
32+
needs: [lint]
33+
if: ${{ github.event_name != 'pull_request' && (contains(github.ref, 'master') || contains(github.ref, 'alpha') || contains(github.ref, 'beta') || contains(github.ref, 'rc')) }}
34+
35+
strategy:
36+
matrix:
37+
node-version: [ 14.x ]
38+
39+
steps:
40+
- uses: actions/checkout@v2
41+
- name: Use Node.js ${{ matrix.node-version }}
42+
uses: actions/setup-node@v1
43+
with:
44+
node-version: ${{ matrix.node-version }}
45+
- name: Install dependencies
46+
run: yarn install --frozen-lockfile --network-timeout 500000
47+
- name: Release packages
48+
env:
49+
CI: true
50+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
51+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
52+
run: yarn release

.github/workflows/rebase.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
on:
2+
issue_comment:
3+
types: [created]
4+
name: Automatic Rebase
5+
jobs:
6+
rebase:
7+
name: Rebase
8+
if: github.event.issue.pull_request != '' && contains(github.event.comment.body, '/rebase')
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout the latest code
12+
uses: actions/checkout@v2
13+
with:
14+
fetch-depth: 0
15+
- name: Automatic Rebase
16+
uses: cirrus-actions/rebase@1.3.1
17+
env:
18+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.travis.yml

Lines changed: 0 additions & 11 deletions
This file was deleted.

package.json

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,11 @@
66
"bin": "bin/gflow.js",
77
"scripts": {
88
"test": "echo \"Error: no test specified\" && exit 0",
9-
"lint": "eslint \"{bin,src,test}/**/*.js\"",
10-
"lint:fix": "eslint --fix \"{bin,src,test}/**/*.js\"",
9+
"test:lint": "eslint \"{bin,src,test}/**/*.js\"",
10+
"test:lint:fix": "eslint --fix \"{bin,src,test}/**/*.js\"",
1111
"prettier": "prettier '{bin,src,test}/**/*.js' --write",
12-
"travis-deploy-once": "travis-deploy-once",
13-
"semantic-release": "semantic-release",
14-
"semantic-release:dryRun": "semantic-release --dryRun"
12+
"release": "semantic-release",
13+
"release:dryRun": "semantic-release --dryRun"
1514
},
1615
"husky": {
1716
"pre-commit": "lint-staged",
@@ -59,10 +58,10 @@
5958
},
6059
"repository": {
6160
"type": "git",
62-
"url": "https://github.com/Romakita/gflow.git"
61+
"url": "https://github.com/tsed/gflow.git"
6362
},
6463
"bugs": {
65-
"url": "https://github.com/Romakita/gflow/issues"
64+
"url": "https://github.com/tsedio/gflow/issues"
6665
},
67-
"homepage": "https://github.com/Romakita/gflow"
66+
"homepage": "https://github.com/tsedio/gflow"
6867
}

src/command/install/check-install.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ const md5 = require('md5');
33
const git = require('../../git');
44

55
module.exports = {
6-
76
getHash() {
87
const { pkg = {} } = readPkgUp.sync();
98
let hash = '';

src/config/ci.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ module.exports = (() => {
2020
return {
2121
NAME: 'GitLab CI',
2222
USER: GIT_USER_NAME || 'GitLab CI',
23-
email: GIT_USER_EMAIL || 'gitlab@gitlab.com',
23+
EMAIL: GIT_USER_EMAIL || 'gitlab@gitlab.com',
2424
BUILD_NUMBER: CI_BUILD_ID || CI_JOB_ID,
2525
ORIGIN: 'origin-git'
2626
};

yarn.lock

Lines changed: 2 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1769,7 +1769,7 @@ debug@^4.0.0, debug@^4.0.1:
17691769
dependencies:
17701770
ms "^2.1.1"
17711771

1772-
debuglog@*, debuglog@^1.0.1:
1772+
debuglog@^1.0.1:
17731773
version "1.0.1"
17741774
resolved "https://registry.yarnpkg.com/debuglog/-/debuglog-1.0.1.tgz#aa24ffb9ac3df9a2351837cfb2d279360cd78492"
17751775
integrity sha1-qiT/uaw9+aI1GDfPstJ5NgzXhJI=
@@ -2931,7 +2931,7 @@ import-lazy@^2.1.0:
29312931
resolved "https://registry.yarnpkg.com/import-lazy/-/import-lazy-2.1.0.tgz#05698e3d45c88e8d7e9d92cb0584e77f096f3e43"
29322932
integrity sha1-BWmOPUXIjo1+nZLLBYTnfwlvPkM=
29332933

2934-
imurmurhash@*, imurmurhash@^0.1.4:
2934+
imurmurhash@^0.1.4:
29352935
version "0.1.4"
29362936
resolved "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea"
29372937
integrity sha1-khi5srkoojixPcT7a21XbyMUU+o=
@@ -3660,11 +3660,6 @@ lockfile@^1.0.4:
36603660
dependencies:
36613661
signal-exit "^3.0.2"
36623662

3663-
lodash._baseindexof@*:
3664-
version "3.1.0"
3665-
resolved "https://registry.yarnpkg.com/lodash._baseindexof/-/lodash._baseindexof-3.1.0.tgz#fe52b53a1c6761e42618d654e4a25789ed61822c"
3666-
integrity sha1-/lK1OhxnYeQmGNZU5KJXie1hgiw=
3667-
36683663
lodash._baseuniq@~4.6.0:
36693664
version "4.6.0"
36703665
resolved "https://registry.yarnpkg.com/lodash._baseuniq/-/lodash._baseuniq-4.6.0.tgz#0ebb44e456814af7905c6212fa2c9b2d51b841e8"
@@ -3673,33 +3668,11 @@ lodash._baseuniq@~4.6.0:
36733668
lodash._createset "~4.0.0"
36743669
lodash._root "~3.0.0"
36753670

3676-
lodash._bindcallback@*:
3677-
version "3.0.1"
3678-
resolved "https://registry.yarnpkg.com/lodash._bindcallback/-/lodash._bindcallback-3.0.1.tgz#e531c27644cf8b57a99e17ed95b35c748789392e"
3679-
integrity sha1-5THCdkTPi1epnhftlbNcdIeJOS4=
3680-
3681-
lodash._cacheindexof@*:
3682-
version "3.0.2"
3683-
resolved "https://registry.yarnpkg.com/lodash._cacheindexof/-/lodash._cacheindexof-3.0.2.tgz#3dc69ac82498d2ee5e3ce56091bafd2adc7bde92"
3684-
integrity sha1-PcaayCSY0u5ePOVgkbr9Ktx73pI=
3685-
3686-
lodash._createcache@*:
3687-
version "3.1.2"
3688-
resolved "https://registry.yarnpkg.com/lodash._createcache/-/lodash._createcache-3.1.2.tgz#56d6a064017625e79ebca6b8018e17440bdcf093"
3689-
integrity sha1-VtagZAF2JeeevKa4AY4XRAvc8JM=
3690-
dependencies:
3691-
lodash._getnative "^3.0.0"
3692-
36933671
lodash._createset@~4.0.0:
36943672
version "4.0.3"
36953673
resolved "https://registry.yarnpkg.com/lodash._createset/-/lodash._createset-4.0.3.tgz#0f4659fbb09d75194fa9e2b88a6644d363c9fe26"
36963674
integrity sha1-D0ZZ+7CddRlPqeK4imZE02PJ/iY=
36973675

3698-
lodash._getnative@*, lodash._getnative@^3.0.0:
3699-
version "3.9.1"
3700-
resolved "https://registry.yarnpkg.com/lodash._getnative/-/lodash._getnative-3.9.1.tgz#570bc7dede46d61cdcde687d65d3eecbaa3aaff5"
3701-
integrity sha1-VwvH3t5G1hzc3mh9ZdPuy6o6r/U=
3702-
37033676
lodash._root@~3.0.0:
37043677
version "3.0.1"
37053678
resolved "https://registry.yarnpkg.com/lodash._root/-/lodash._root-3.0.1.tgz#fba1c4524c19ee9a5f8136b4609f017cf4ded692"
@@ -3740,11 +3713,6 @@ lodash.isstring@^4.0.1:
37403713
resolved "https://registry.yarnpkg.com/lodash.isstring/-/lodash.isstring-4.0.1.tgz#d527dfb5456eca7cc9bb95d5daeaf88ba54a5451"
37413714
integrity sha1-1SfftUVuynzJu5XV2ur4i6VKVFE=
37423715

3743-
lodash.restparam@*:
3744-
version "3.6.1"
3745-
resolved "https://registry.yarnpkg.com/lodash.restparam/-/lodash.restparam-3.6.1.tgz#936a4e309ef330a7645ed4145986c85ae5b20805"
3746-
integrity sha1-k2pOMJ7zMKdkXtQUWYbIWuWyCAU=
3747-
37483716
lodash.set@^4.3.2:
37493717
version "4.3.2"
37503718
resolved "https://registry.yarnpkg.com/lodash.set/-/lodash.set-4.3.2.tgz#d8757b1da807dde24816b0d6a84bea1a76230b23"

0 commit comments

Comments
 (0)