-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ci): fix manifest path in get-built-version action (#519)
* Fix manifest path * Update release body Co-authored-by: Sid Vishnoi <[email protected]>
- Loading branch information
1 parent
6fffd49
commit 81db868
Showing
2 changed files
with
6 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
// @ts-check | ||
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-var-requires */ | ||
const path = require('node:path') | ||
const fs = require('node:fs/promises') | ||
|
||
/** | ||
* Retrieves the manifest version from the built extension. | ||
* @param {import('github-script').AsyncFunctionArguments} AsyncFunctionArguments | ||
*/ | ||
module.exports = async ({ core }) => { | ||
const manifestPath = path.join(__dirname, 'dist', 'chrome', 'manifest.json') | ||
const manifest = await fs.readFile(manifestPath, 'utf8').then(JSON.parse) | ||
const manifest = await fs | ||
.readFile('./dist/chrome/manifest.json', 'utf8') | ||
.then(JSON.parse) | ||
|
||
core.setOutput('version', manifest.version) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters