From 24f86b5fbce394e2bf746ba1657a50ab57d11896 Mon Sep 17 00:00:00 2001 From: xenticore Date: Thu, 27 Mar 2025 12:13:05 -0400 Subject: [PATCH] ci: declare global vars in test environment --- .gitea/workflows/build.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 84d63a9..348256d 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -18,10 +18,13 @@ jobs: steps: - name: Check out repository uses: actions/checkout@v4.1.2 + - name: Read package version + uses: tyankatsu0105/read-package-version-actions@v1 + id: version - name: Install dependencies run: bun install - name: Test project - run: bun test + run: bun test --define __VERSION__='${{ need.build.outputs.version }}' --define __EXTENSION_NAME='"tf2wikipricing"' - name: Build project run: bun run build - name: Archive production artifacts