From 81db8681f4eac3668acb812c4f7eff54678f38d9 Mon Sep 17 00:00:00 2001 From: Radu-Cristian Popa Date: Tue, 20 Aug 2024 11:22:02 +0300 Subject: [PATCH] chore(ci): fix manifest path in get-built-version action (#519) * Fix manifest path * Update release body Co-authored-by: Sid Vishnoi <8426945+sidvishnoi@users.noreply.github.com> --- .github/actions/get-built-version.cjs | 6 +++--- .github/workflows/nightly-build.yaml | 3 +++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/actions/get-built-version.cjs b/.github/actions/get-built-version.cjs index 511cb6db..299578a8 100644 --- a/.github/actions/get-built-version.cjs +++ b/.github/actions/get-built-version.cjs @@ -1,6 +1,5 @@ // @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') /** @@ -8,8 +7,9 @@ const fs = require('node:fs/promises') * @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) } diff --git a/.github/workflows/nightly-build.yaml b/.github/workflows/nightly-build.yaml index 362d858c..7e32b74d 100644 --- a/.github/workflows/nightly-build.yaml +++ b/.github/workflows/nightly-build.yaml @@ -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