Skip to content

Commit 4647704

Browse files
committed
fix(docs): inject version into html docs
1 parent 18601ee commit 4647704

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/build-and-publish.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,9 @@ jobs:
160160
uses: actions/setup-node@v4
161161
- name: Build docs
162162
run: chmod +x build-docs.sh && ./build-docs.sh && mv filen-cli-docs.html filen-cli-${{ github.event.release.tag_name }}-docs.html
163+
with:
164+
env:
165+
FILEN_CLI_EXPORT_DOCS_JSON_VERSION: ${{ github.event.release.tag_name }}
163166
- name: Attach HTML file to release
164167
uses: softprops/action-gh-release@v2
165168
with:

src/framework/app.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export class App<X extends Extra> {
8383

8484
// export docs json
8585
if (argv.includes("internal-export-docs-json")) {
86-
const json = JSON.stringify({ version, features}, null, 2)
86+
const json = JSON.stringify({ version: process.env.FILEN_CLI_EXPORT_DOCS_JSON_VERSION ?? version, features}, null, 2)
8787
fs.writeFileSync("filen-cli-docs.json", json)
8888
this.out("Exported docs JSON to filen-cli-docs.json")
8989
process.exit()

0 commit comments

Comments
 (0)