Skip to content

Commit 60f8bd8

Browse files
Include package.json version on PR check (PipedreamHQ#4168)
* include package.json version on pr check * fix packages with errors * bump all packages
1 parent d670918 commit 60f8bd8

392 files changed

Lines changed: 3046 additions & 6747 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/actions/git-diff-on-components/dist/index.js

Lines changed: 37 additions & 4032 deletions
Large diffs are not rendered by default.

.github/actions/git-diff-on-components/dist/licenses.txt

Lines changed: 10 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,16 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
237237
SOFTWARE.
238238

239239

240+
@vercel/ncc
241+
MIT
242+
Copyright 2018 ZEIT, Inc.
243+
244+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
245+
246+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
247+
248+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
249+
240250
app-module-path
241251
BSD-2-Clause
242252

@@ -353,31 +363,6 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
353363
THE SOFTWARE.
354364

355365

356-
buffer-from
357-
MIT
358-
MIT License
359-
360-
Copyright (c) 2016, 2018 Linus Unnebäck
361-
362-
Permission is hereby granted, free of charge, to any person obtaining a copy
363-
of this software and associated documentation files (the "Software"), to deal
364-
in the Software without restriction, including without limitation the rights
365-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
366-
copies of the Software, and to permit persons to whom the Software is
367-
furnished to do so, subject to the following conditions:
368-
369-
The above copyright notice and this permission notice shall be included in all
370-
copies or substantial portions of the Software.
371-
372-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
373-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
374-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
375-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
376-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
377-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
378-
SOFTWARE.
379-
380-
381366
concat-map
382367
MIT
383368
This software is released under the MIT license:
@@ -1258,19 +1243,6 @@ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
12581243
OTHER DEALINGS IN THE SOFTWARE.
12591244

12601245

1261-
has-flag
1262-
MIT
1263-
MIT License
1264-
1265-
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
1266-
1267-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1268-
1269-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
1270-
1271-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1272-
1273-
12741246
ignore
12751247
MIT
12761248
Copyright (c) 2013 Kael Zhang <i@kael.me>, contributors
@@ -2260,31 +2232,6 @@ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
22602232
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
22612233

22622234

2263-
source-map-support
2264-
MIT
2265-
The MIT License (MIT)
2266-
2267-
Copyright (c) 2014 Evan Wallace
2268-
2269-
Permission is hereby granted, free of charge, to any person obtaining a copy
2270-
of this software and associated documentation files (the "Software"), to deal
2271-
in the Software without restriction, including without limitation the rights
2272-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
2273-
copies of the Software, and to permit persons to whom the Software is
2274-
furnished to do so, subject to the following conditions:
2275-
2276-
The above copyright notice and this permission notice shall be included in all
2277-
copies or substantial portions of the Software.
2278-
2279-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
2280-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
2281-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
2282-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
2283-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2284-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2285-
SOFTWARE.
2286-
2287-
22882235
stringify-object
22892236
BSD-2-Clause
22902237
Copyright (c) 2015, Yeoman team
@@ -2339,19 +2286,6 @@ THE SOFTWARE.
23392286
stylus-lookup
23402287
MIT
23412288

2342-
supports-color
2343-
MIT
2344-
MIT License
2345-
2346-
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
2347-
2348-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
2349-
2350-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
2351-
2352-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2353-
2354-
23552289
tapable
23562290
MIT
23572291
The MIT License

.github/actions/git-diff-on-components/src/index.js

Lines changed: 29 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,30 @@ async function getFilesContent(filePaths = []) {
9191
return Promise.all(contentFilesPromises);
9292
}
9393

94+
function includesVersion(contents) {
95+
return contents.includes("version:") || contents.includes("\"version\":");
96+
}
97+
98+
function getPackageJsonFilePath(filePaths) {
99+
if (Array.isArray(filePaths)) {
100+
const packages = new Set();
101+
for (const filePath of filePaths) {
102+
packages.add(...getPackageJsonFilePath(filePath));
103+
}
104+
return Array.from(packages);
105+
}
106+
107+
const base = filePaths.split("components/")[0];
108+
const appName = filePaths.split("components/")[1].split("/")[0];
109+
return [
110+
`${base}components/${appName}/package.json`,
111+
];
112+
}
113+
94114
async function getDiffsContent(filesContent = []) {
95115
const diffContentPromises =
96116
filesContent
97-
.filter(({ contents }) => contents.includes("version:"))
117+
.filter(({ contents }) => includesVersion(contents))
98118
.map(async ({ filePath }) => {
99119
return {
100120
filePath,
@@ -109,8 +129,8 @@ function getUnmodifiedComponents({ contents = [], uncommited } = {}) {
109129
return contents
110130
.filter(({ contents }) =>
111131
uncommited
112-
? contents.includes("version:")
113-
: !contents.includes("version:"))
132+
? includesVersion(contents)
133+
: !includesVersion(contents))
114134
.map(({ filePath }) => filePath);
115135
}
116136

@@ -125,7 +145,7 @@ async function processFiles({ filePaths = [], uncommited } = {}) {
125145
return getUnmodifiedComponents({ contents: diffsContent });
126146
}
127147

128-
async function deepReadDir (dirPath) {
148+
async function deepReadDir(dirPath) {
129149
return Promise.all(
130150
(await readdir(dirPath))
131151
.map(async (entity) => {
@@ -138,7 +158,7 @@ async function deepReadDir (dirPath) {
138158
}
139159

140160
async function getAllFilePaths({ componentsPath, apps = [] } = {}) {
141-
return Promise.all(apps.map((app) => deepReadDir(join(componentsPath ,app))))
161+
return Promise.all(apps.map((app) => deepReadDir(join(componentsPath, app))))
142162
.then(reduceResult);
143163
}
144164

@@ -248,6 +268,7 @@ function getFilesToBeCheckByDependency(componentsDependencies) {
248268
function getComponentsThatNeedToBeModified({ filesToBeCheckedByDependency, otherFiles }) {
249269
return Object.entries(filesToBeCheckedByDependency)
250270
.reduce(async (reduction, [filePath, filesToBeChecked]) => {
271+
filesToBeChecked.push(...getPackageJsonFilePath(filePath));
251272
const found = otherFiles.find((path) => filePath.includes(path));
252273
if (found) {
253274
const newFilePaths = await processFiles({ filePaths: filesToBeChecked, uncommited: true });
@@ -281,7 +302,7 @@ async function checkVersionModification(componentsPendingForGitDiff) {
281302
);
282303
return output.filter(({ contents }) =>
283304
!contents
284-
|| (contents?.length && !contents.includes("version:")));
305+
|| (contents?.length && !includesVersion(contents)));
285306
}
286307

287308
function getComponentFilePath(filePath) {
@@ -293,6 +314,7 @@ async function run() {
293314
let componentsDiffContents = [];
294315
const filteredFilePaths = getFilteredFilePaths({ allFilePaths: allFiles });
295316
const existingFilePaths = await getExistingFilePaths(filteredFilePaths);
317+
existingFilePaths.push(...getPackageJsonFilePath(existingFilePaths));
296318
const componentsThatDidNotModifyVersion = await processFiles({ filePaths: existingFilePaths });
297319
const filteredWithOtherFilePaths = getFilteredFilePaths({ allFilePaths: allFiles, allowOtherFiles: true });
298320
const otherFiles = difference(filteredWithOtherFilePaths, existingFilePaths);
@@ -324,5 +346,4 @@ async function run() {
324346
}
325347
}
326348

327-
run()
328-
.catch(error => core.setFailed(error ?? error?.message));
349+
run().catch(error => core.setFailed(error ?? error?.message));
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
11
{
22
"name": "@pipedream/action_builder",
3-
"version": "0.0.1",
3+
"version": "0.0.2",
44
"description": "Pipedream Action Builder Components",
55
"main": "dist/app/action_builder.app.mjs",
66
"keywords": [
77
"pipedream",
88
"action_builder"
99
],
10-
"files": ["dist"],
10+
"files": [
11+
"dist"
12+
],
1113
"homepage": "https://pipedream.com/apps/action_builder",
1214
"author": "Pipedream <support@pipedream.com> (https://pipedream.com/)",
1315
"license": "MIT",
1416
"publishConfig": {
1517
"access": "public"
1618
}
17-
}
19+
}
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
11
{
22
"name": "@pipedream/action_network",
3-
"version": "0.0.1",
3+
"version": "0.0.2",
44
"description": "Pipedream Action Network Components",
55
"main": "dist/app/action_network.app.mjs",
66
"keywords": [
77
"pipedream",
88
"action_network"
99
],
10-
"files": ["dist"],
10+
"files": [
11+
"dist"
12+
],
1113
"homepage": "https://pipedream.com/apps/action_network",
1214
"author": "Pipedream <support@pipedream.com> (https://pipedream.com/)",
1315
"license": "MIT",
1416
"publishConfig": {
1517
"access": "public"
1618
}
17-
}
19+
}

components/activecampaign/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/activecampaign",
3-
"version": "0.3.3",
3+
"version": "0.3.4",
44
"description": "Pipedream Activecampaing Components",
55
"main": "activecampaign.app.mjs",
66
"keywords": [

components/acumbamail/package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
11
{
22
"name": "@pipedream/acumbamail",
3-
"version": "0.0.1",
3+
"version": "0.0.2",
44
"description": "Pipedream Acumbamail Components",
55
"main": "dist/app/acumbamail.app.mjs",
66
"keywords": [
77
"pipedream",
88
"acumbamail"
99
],
10-
"files": ["dist"],
10+
"files": [
11+
"dist"
12+
],
1113
"homepage": "https://pipedream.com/apps/acumbamail",
1214
"author": "Pipedream <support@pipedream.com> (https://pipedream.com/)",
1315
"license": "MIT",
1416
"publishConfig": {
1517
"access": "public"
1618
}
17-
}
19+
}
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
11
{
22
"name": "@pipedream/adafruit_io",
3-
"version": "0.0.1",
3+
"version": "0.0.2",
44
"description": "Pipedream Adafruit IO Components",
55
"main": "dist/app/adafruit_io.app.mjs",
66
"keywords": [
77
"pipedream",
88
"adafruit_io"
99
],
10-
"files": ["dist"],
10+
"files": [
11+
"dist"
12+
],
1113
"homepage": "https://pipedream.com/apps/adafruit_io",
1214
"author": "Pipedream <support@pipedream.com> (https://pipedream.com/)",
1315
"license": "MIT",
1416
"publishConfig": {
1517
"access": "public"
1618
}
17-
}
19+
}

components/adalo/package.json

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
{
2-
"name": "@pipedream/adalo",
3-
"version": "0.0.2",
4-
"description": "Pipedream Adalo Components",
5-
"main": "adalo.app.mjs",
6-
"keywords": [
7-
"pipedream",
8-
"adalo"
9-
],
10-
"homepage": "https://pipedream.com/apps/adalo",
11-
"author": "Pipedream <support@pipedream.com> (https://pipedream.com/)",
12-
"license": "MIT",
13-
"gitHead": "e12480b94cc03bed4808ebc6b13e7fdb3a1ba535",
14-
"publishConfig": {
15-
"access": "public"
16-
},
17-
"dependencies": {
18-
"@pipedream/platform": "^0.10.0"
19-
}
2+
"name": "@pipedream/adalo",
3+
"version": "0.0.3",
4+
"description": "Pipedream Adalo Components",
5+
"main": "adalo.app.mjs",
6+
"keywords": [
7+
"pipedream",
8+
"adalo"
9+
],
10+
"homepage": "https://pipedream.com/apps/adalo",
11+
"author": "Pipedream <support@pipedream.com> (https://pipedream.com/)",
12+
"license": "MIT",
13+
"gitHead": "e12480b94cc03bed4808ebc6b13e7fdb3a1ba535",
14+
"publishConfig": {
15+
"access": "public"
16+
},
17+
"dependencies": {
18+
"@pipedream/platform": "^0.10.0"
19+
}
2020
}

components/agendor/package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
11
{
22
"name": "@pipedream/agendor",
3-
"version": "0.0.1",
3+
"version": "0.0.2",
44
"description": "Pipedream Agendor Components",
55
"main": "dist/app/agendor.app.mjs",
66
"keywords": [
77
"pipedream",
88
"agendor"
99
],
10-
"files": ["dist"],
10+
"files": [
11+
"dist"
12+
],
1113
"homepage": "https://pipedream.com/apps/agendor",
1214
"author": "Pipedream <support@pipedream.com> (https://pipedream.com/)",
1315
"license": "MIT",
1416
"publishConfig": {
1517
"access": "public"
1618
}
17-
}
19+
}

0 commit comments

Comments
 (0)