mirror of
https://github.com/AIsouler/GKD_subscription.git
synced 2025-12-18 07:45:10 +08:00
chore(actions): get right version
This commit is contained in:
6
scripts/showVersion.ts
Normal file
6
scripts/showVersion.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import fs from 'node:fs/promises';
|
||||
import type PkgT from '../package.json';
|
||||
const pkg: typeof PkgT = JSON.parse(
|
||||
await fs.readFile(process.cwd() + '/package.json', 'utf-8'),
|
||||
);
|
||||
process.stdout.write(pkg.version);
|
||||
Reference in New Issue
Block a user