Skip to content

Commit 0e97dad

Browse files
committed
ci: store Node version in environment for deployment workflow
1 parent 515c871 commit 0e97dad

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/deploy.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ jobs:
3030
id: setup-node
3131
with:
3232
node-version-file: .nvmrc
33+
34+
- name: Store Node version
35+
run: |
36+
NODE_VERSION="${{ steps.setup-node.outputs.node-version }}"
37+
echo "NODE_VERSION=${NODE_VERSION#v}" >> $GITHUB_ENV
3338
3439
- name: Install pnpm
3540
uses: pnpm/action-setup@v4
@@ -84,6 +89,7 @@ jobs:
8489
- name: Log Step outputs
8590
run: |
8691
echo "Node version: ${{ steps.setup-node.outputs.node-version }}"
92+
echo "NODE_VERSION: ${{ env.NODE_VERSION }}"
8793
echo "Tags: ${{ steps.meta.outputs.tags }}"
8894
echo "Labels: ${{ steps.meta.outputs.labels }}"
8995
@@ -98,7 +104,7 @@ jobs:
98104
cache-from: type=gha
99105
cache-to: type=gha,mode=max
100106
build-args: |
101-
NODE_VERSION=${{ steps.setup-node.outputs.node-version }}
107+
NODE_VERSION=${{ env.NODE_VERSION }}
102108
103109
- name: Deploy to VPS
104110
uses: appleboy/ssh-action@v1.0.3

0 commit comments

Comments
 (0)