Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/actions/changed-packages/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ outputs:
paths:
description: An array of relative paths to packages that were changed
runs:
using: node12
using: node20
main: main.js
29 changes: 15 additions & 14 deletions .github/actions/changed-packages/main.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
require = require('esm')(module);

const { relative, resolve } = require('path');
const core = require('@actions/core')
const core = require('@actions/core');

(async () => {
const { root } = await import('../../../scripts/lib/repo.mjs');
const { execute } = await import('../../../scripts/lib/cli.mjs');
const { ls } = await import('../../../scripts/lib/lerna.mjs');

const { root } = require('../../../scripts/lib/repo.mjs');
const { execute } = require('../../../scripts/lib/cli.mjs');
const { ls } = require('../../../scripts/lib/lerna.mjs');
execute(async () => {
const files = JSON.parse(core.getInput('files', '[]')).map(f => resolve(root, f));
const packages = await ls();
const changedPackages = packages.filter(pkg => files.some(f => f.startsWith(pkg.location)));
const paths = JSON.stringify(changedPackages.map(pkg => relative(root, pkg.location)));

execute(async () => {
const files = JSON.parse(core.getInput('files', '[]')).map(f => resolve(root, f));
const packages = await ls();
const changedPackages = packages.filter(pkg => files.some(f => f.startsWith(pkg.location)));
const paths = JSON.stringify(changedPackages.map(pkg => relative(root, pkg.location)));
core.info(`Changed package paths: ${paths}`);
core.setOutput('paths', paths);
});
})();

core.info(`Changed package paths: ${paths}`);
core.setOutput('paths', paths);
});
23 changes: 11 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,18 @@
"ci:publish:dev": "lerna publish prerelease --conventional-commits --conventional-prerelease --preid dev-$(date +\"%Y%m%dT%H%M%S\") --force-publish --no-changelog --no-git-tag-version --dist-tag dev --no-push --yes"
},
"devDependencies": {
"@actions/core": "^1.9.1",
"@actions/http-client": "2.1.1",
"@actions/core": "^1.11.1",
"@actions/http-client": "^3.0.0",
"@ionic/prettier-config": "^4.0.0",
"@types/node": "~18.11.19",
"@types/prompts": "^2.0.8",
"cross-spawn": "^7.0.3",
"esm": "^3.2.25",
"glob": "^10.3.3",
"lerna": "^7.1.3",
"nx": "^16.3.1",
"@types/node": "^24.10.1",
"@types/prompts": "^2.4.9",
"cross-spawn": "^7.0.6",
"glob": "^11.0.3",
"lerna": "^7.4.2",
"nx": "^16.10.0",
"prettier": "^3.6.2",
"prompts": "^2.3.2",
"typescript": "~4.1.5"
"prompts": "^2.4.2",
"typescript": "^5.9.3"
},
"prettier": "@ionic/prettier-config",
"swiftlint": {
Expand Down Expand Up @@ -64,4 +63,4 @@
"text-zoom",
"toast"
]
}
}