Skip to content

Commit abbbd94

Browse files
committed
Fix build
1 parent 3928d6a commit abbbd94

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/nightly-publish.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,16 @@ jobs:
4343
run: |
4444
node <<'EOF'
4545
const fs = require('fs');
46-
const pkg = JSON.parse(fs.readFileSync('apps/vscode-nightly/package.nightly.json','utf8'));
46+
const path = require('path');
47+
const pkgPath = path.join(__dirname, 'apps', 'vscode-nightly', 'package.nightly.json');
48+
const pkg = JSON.parse(fs.readFileSync(pkgPath,'utf8'));
4749
const [maj, min] = pkg.version.split('.');
4850
pkg.version = `${maj}.${min}.${process.env.COMMIT_COUNT}`;
49-
fs.writeFileSync('apps/vscode-nightly/package.json', JSON.stringify(pkg, null, 2));
51+
fs.writeFileSync(pkgPath, JSON.stringify(pkg, null, 2));
5052
console.log(`🔖 Nightly version set to ${pkg.version}`);
5153
EOF
52-
- name: Setup upterm session
53-
uses: lhotari/action-upterm@v1
54+
# - name: Setup upterm session
55+
# uses: lhotari/action-upterm@v1
5456
- name: Build VSIX
5557
run: |
5658
ls -al

0 commit comments

Comments
 (0)