jamespot-react-core 1.1.5 → 1.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -58,6 +58,11 @@ jobs:
|
|
|
58
58
|
cd ./newbranch
|
|
59
59
|
npm i jamespot-user-api@latest
|
|
60
60
|
npm i jamespot-react-components@latest
|
|
61
|
+
- run: |
|
|
62
|
+
cd ./newbranch
|
|
63
|
+
npm publish
|
|
64
|
+
env:
|
|
65
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
61
66
|
- name: Cache dependencies
|
|
62
67
|
uses: actions/cache@v2
|
|
63
68
|
with:
|
|
@@ -69,11 +74,6 @@ jobs:
|
|
|
69
74
|
pwd
|
|
70
75
|
cp newbranch/package.json ./
|
|
71
76
|
cp newbranch/package-lock.json ./
|
|
72
|
-
npm i
|
|
73
|
-
rm -rf newbranch
|
|
74
|
-
- run: npm publish
|
|
75
|
-
env:
|
|
76
|
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
77
77
|
- name: push
|
|
78
78
|
uses: actions-x/commit@v4
|
|
79
79
|
with:
|
package/package.json
CHANGED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
const fs = require('fs');
|
|
2
|
-
const path = require('path');
|
|
3
|
-
/****
|
|
4
|
-
Check args
|
|
5
|
-
***/
|
|
6
|
-
|
|
7
|
-
const JS_BRANCH_TO_UPDATE = "develop"
|
|
8
|
-
|
|
9
|
-
if (process.argv && process.argv[2]) {
|
|
10
|
-
const projectPath = process.argv[2];
|
|
11
|
-
console.log(process.argv[2])
|
|
12
|
-
|
|
13
|
-
let rawdata = fs.readFileSync(path.resolve(__dirname, `${projectPath}/branches.json`));
|
|
14
|
-
let branchesJson = JSON.parse(rawdata);
|
|
15
|
-
if (branchesJson) {
|
|
16
|
-
let branchToUpdateIndex = branchesJson.findIndex((branch) => branch.branchName === JS_BRANCH_TO_UPDATE
|
|
17
|
-
&& branch.userApiBranch === JS_BRANCH_TO_UPDATE
|
|
18
|
-
&& branch.reactCoreBranch === JS_BRANCH_TO_UPDATE
|
|
19
|
-
&& branch.reactComponentsBranch === JS_BRANCH_TO_UPDATE
|
|
20
|
-
&& branch.reactExtensionsBranch === JS_BRANCH_TO_UPDATE)
|
|
21
|
-
|
|
22
|
-
branchesJson[branchToUpdateIndex].version = String(parseInt(branchesJson[branchToUpdateIndex].version) + 1)
|
|
23
|
-
|
|
24
|
-
fs.writeFile(`${projectPath}/branches.json`, JSON.stringify(branchesJson, null, 4), (err) => {
|
|
25
|
-
if (err) return console.log(err);
|
|
26
|
-
console.log('Update ok for ' + projectPath);
|
|
27
|
-
});
|
|
28
|
-
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
const fs = require('fs');
|
|
2
|
-
const path = require('path');
|
|
3
|
-
/****
|
|
4
|
-
Check args
|
|
5
|
-
***/
|
|
6
|
-
if (process.argv && process.argv[2]) {
|
|
7
|
-
const projectPath = process.argv[2];
|
|
8
|
-
console.log(process.argv[2])
|
|
9
|
-
|
|
10
|
-
let rawdata = fs.readFileSync(path.resolve(__dirname, `${projectPath}/package.json`));
|
|
11
|
-
let packageJson = JSON.parse(rawdata);
|
|
12
|
-
if (packageJson) {
|
|
13
|
-
if (packageJson.dependencies) {
|
|
14
|
-
if (packageJson.dependencies['jamespot-react-components']) {
|
|
15
|
-
packageJson.dependencies['jamespot-react-components'] = "github:Jamespot/jamespot-react-components#remote-stable"
|
|
16
|
-
}
|
|
17
|
-
if (packageJson.dependencies['jamespot-react-core']) {
|
|
18
|
-
packageJson.dependencies['jamespot-react-core'] = "github:Jamespot/jamespot-react-core#remote-stable"
|
|
19
|
-
}
|
|
20
|
-
if (packageJson.dependencies['jamespot-user-api']) {
|
|
21
|
-
packageJson.dependencies['jamespot-user-api'] = "github:Jamespot/jamespot-user-api#remote-stable"
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
fs.writeFile(`${projectPath}/package.json`, JSON.stringify(packageJson), (err) => {
|
|
25
|
-
if (err) return console.log(err);
|
|
26
|
-
console.log('Update ok for ' + projectPath);
|
|
27
|
-
console.log(packageJson)
|
|
28
|
-
});
|
|
29
|
-
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
}
|