Skip to content

Commit

Permalink
chore(ci): fix manifest path in get-built-version action (#519)
Browse files Browse the repository at this point in the history
* Fix manifest path

* Update release body

Co-authored-by: Sid Vishnoi <[email protected]>
  • Loading branch information
raducristianpopa and sidvishnoi authored Aug 20, 2024
1 parent 6fffd49 commit 81db868
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/actions/get-built-version.cjs
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)
}
3 changes: 3 additions & 0 deletions .github/workflows/nightly-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,7 @@ jobs:
dist/*.zip
tag_name: 'nightly'
name: Nightly ${{ steps.version.outputs.version }}
body: |
> [!warning]
> The Nightly build is for adventurous folks. It's updated daily with less-tested features and improvements.
prerelease: true

0 comments on commit 81db868

Please sign in to comment.