Skip to content

Commit 9a4cb7d

Browse files
committed
fix: Fix environment variable handling in build workflow
1 parent 12f81b9 commit 9a4cb7d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/build-draft-release.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,15 @@ jobs:
5050
run: npm ci
5151

5252
- name: Update manifest version for release
53-
env:
54-
TAG: ${{ github.ref_name }}
5553
run: |
5654
# Strip 'v' prefix if present (supports both 1.2.3 and v1.2.3)
55+
TAG="${{ github.ref_name }}"
5756
VERSION="${TAG#v}"
5857
echo "VERSION=$VERSION" >> $GITHUB_ENV
5958
6059
node -e "
6160
const fs = require('fs');
62-
const version = process.env.VERSION;
61+
const version = '${VERSION}';
6362
const manifest = JSON.parse(fs.readFileSync('manifest.json', 'utf8'));
6463
manifest.version = version;
6564
fs.writeFileSync('manifest.json', JSON.stringify(manifest, null, 2) + '\n');

0 commit comments

Comments
 (0)