chore:workflow version

This commit is contained in:
手瓜一十雪
2024-04-16 11:49:44 +08:00
parent 9db28bd502
commit ed56e177cf

View File

@@ -22,7 +22,14 @@ jobs:
- name: Use Node.js 20.X - name: Use Node.js 20.X
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with:
node-version: 20.x node-version: 20.x
- name: Extract version from tag
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV
- name: Print version
run: echo $VERSION
- name: Build NuCat Linux - name: Build NuCat Linux
run: | run: |
npm i --arch=${{ matrix.target_arch }} --platform=${{ matrix.target_platform }} npm i --arch=${{ matrix.target_arch }} --platform=${{ matrix.target_platform }}
@@ -53,6 +60,12 @@ jobs:
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with:
node-version: 20.x node-version: 20.x
- name: Extract version from tag
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV
- name: Print version
run: echo $VERSION
- name: Build NuCat Linux - name: Build NuCat Linux
run: | run: |
npm i --arch=${{ matrix.target_arch }} --platform=${{ matrix.target_platform }} npm i --arch=${{ matrix.target_arch }} --platform=${{ matrix.target_platform }}