Skip to content
Open
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
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,32 @@ steps:
- `edge-version`: The installed Edge version. Useful when given a latest version.
- `edge-path`: The installed Edge path.

## Contributing

```bash
# Instal dependencies
pnpm install

# Run tests
pnpm lint
pnpm test

# Build and create package in dist/
pnpm build
pnpm package
```

## Release

Releases are automated with Release Please. All changes must follow [Conventional Commits][], since Release Please derives versions and changelog entries from commit messages.

1. Merge some changes to the main branch.
2. Release Please opens or updates a release PR with version bumps and changelog updates.
3. Squash and merge the release PR to the main branch with a commit message that follows [Conventional Commits][].
4. Create a GitHub release and publish the action to the marketplace.

[Conventional Commits]: https://www.conventionalcommits.org/en/v1.0.0/

## License

[MIT](LICENSE)
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ outputs:
edge-path:
description: 'The installed Edge path.'
runs:
using: 'node20'
using: 'node24'
main: 'index.js'
2 changes: 1 addition & 1 deletion biome.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"files": {
"ignore": ["package.json", "__test__/*.json"]
"ignore": ["package.json", "__test__/*.json", "dist"]
},
"linter": {
"enabled": true,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "dist/index.js",
"packageManager": "pnpm@8.7.5",
"engines": {
"node": "20.6.1"
"node": ">=24.0.0"
},
"dependencies": {
"@actions/core": "^1.10.1",
Expand Down
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ async function run(): Promise<void> {
const result = await (async () => {
const installed = await installer.checkInstalled(version);
if (installed) {
core.info(`Edge ${version} is already installed @ ${installed.root}`);
const bin = path.join(installed.root, installed.bin);
core.info(`Edge ${version} is already installed @ ${bin}`);
return installed;
}

Expand Down
11 changes: 5 additions & 6 deletions src/installer_windows.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,11 @@ export class WindowsInstaller implements Installer {

async test(_version: versions.Version): Promise<void> {
const msedgeBin = await io.which("msedge", true);
await exec.exec("wmic", [
"datafile",
"where",
`name="${msedgeBin.replace(/\\/g, "\\\\")}"`,
"get",
"version",
await exec.exec("powershell", [
"-NoProfile",
"-NonInteractive",
"-Command",
`(Get-Item (Get-Command '${msedgeBin}').Source).VersionInfo.ProductVersion`,
]);
}
}
Loading