Skip to content

Commit 3e1624d

Browse files
committed
workflow: correctly inject version into executable
1 parent 4cb274b commit 3e1624d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ jobs:
1919
files: "package.json"
2020
search-text: "\"version\": \"0.0.0\""
2121
replacement-text: "\"version\": \"${{ github.event.release.tag_name }}\""
22-
- name: Export version as environment variable
23-
run: export THYME_VERSION=${{ github.event.release.tag_name }}
2422
- name: Setup Node
2523
uses: actions/setup-node@v4
2624
with:
2725
node-version: "22"
2826
- run: npm ci
2927
- run: npm run build
28+
env:
29+
THYME_VERSION: ${{ github.event.release.tag_name }}
3030
- name: Attach binaries to release
3131
uses: softprops/action-gh-release@v2
3232
with:

0 commit comments

Comments
 (0)