Skip to content

Commit 56f99b2

Browse files
committed
fix: remove deprecated yarn flag
1 parent 13d875a commit 56f99b2

File tree

7 files changed

+65
-53
lines changed

7 files changed

+65
-53
lines changed

.github/workflows/build.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
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: [master]
10+
types: [opened, synchronize, closed]
11+
12+
jobs:
13+
lint:
14+
runs-on: ubuntu-latest
15+
strategy:
16+
matrix:
17+
node-version: [16.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 lint
29+
30+
deploy-package:
31+
runs-on: ubuntu-latest
32+
needs:
33+
[
34+
lint
35+
]
36+
if: github.event_name != 'pull_request' && contains('refs/heads/master', github.ref)
37+
38+
strategy:
39+
matrix:
40+
node-version: [16.x]
41+
42+
steps:
43+
- uses: actions/checkout@v2
44+
- name: Use Node.js ${{ matrix.node-version }}
45+
uses: actions/setup-node@v1
46+
with:
47+
node-version: ${{ matrix.node-version }}
48+
- name: Install dependencies
49+
run: yarn install --frozen-lockfile --network-timeout 500000
50+
- name: Release packages
51+
env:
52+
CI: true
53+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
54+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
55+
run: yarn release

.travis.yml

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

bin/gflow-rebase-all.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ const { rebaseAll, config } = require('../src');
66
commander
77
.alias('gflow rebase-all')
88
.option('-o, --from <fromBranch>', 'Rebase all branch from a branch. By default origin/production.')
9-
.action(() => {})
9+
.action(() => {
10+
})
1011
.parse(process.argv);
1112

1213
const options = {};
@@ -15,4 +16,4 @@ options.from = config.remoteProduction;
1516
if (commander.from) {
1617
options.from = commander.from;
1718
}
18-
rebaseAll(Object.assign({}, config.toObject(), options));
19+
rebaseAll({ ...config.toObject(), ...options });

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,8 @@
99
"lint": "eslint \"{bin,src,test}/**/*.js\"",
1010
"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",
@@ -65,4 +64,4 @@
6564
"url": "https://github.com/Romakita/gflow/issues"
6665
},
6766
"homepage": "https://github.com/Romakita/gflow"
68-
}
67+
}

src/command/install/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ module.exports = () => ({
1212
{
1313
title: 'Installing dependencies using Yarn',
1414
enabled: () => hasYarn() === true,
15-
task: () => exec('yarn', ['install', '--frozen-lockfile', '--production=false'])
15+
task: () => exec('yarn', ['install'])
1616
.pipe(catchError(error => {
1717
if (error.stderr.startsWith('error Your lockfile needs to be updated')) {
1818
throwError(new Error('yarn.lock file is outdated. Run yarn, commit the updated lockfile and try again.'));

src/command/test/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
const exec = require('../../exec');
21
const hasYarn = require('has-yarn');
2+
const exec = require('../../exec');
33

44
module.exports = options => ({
55
title: 'Test',

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)