Update build.yml

This commit is contained in:
ikun
2024-09-15 18:32:25 +08:00
parent b8f0b5caf4
commit cfe9c5c8d6

View File

@@ -14,7 +14,11 @@ jobs:
# Push tag to GitHub if package.json version's tag is not tagged
- name: Get package version
run: node -p -e '`PACKAGE_VERSION=${require("./package.json").version}`' >> $GITHUB_ENV
shell: powershell
run: |
$version = (Get-Content package.json | ConvertFrom-Json).version
echo "PACKAGE_VERSION=$version" >> $env:GITHUB_ENV
- name: Set up Python 3.11
uses: actions/setup-python@v3