Skip to content

Commit aef229e

Browse files
committed
ci: read Node version from .nvmrc and output it during deployment workflow
1 parent 89e7520 commit aef229e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/deploy.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,14 @@ jobs:
3434
git checkout main
3535
git pull origin main
3636
37+
# Read NODE_VERSION from .nvmrc
38+
export NODE_VERSION=$(cat .nvmrc | sed 's/v//')
39+
echo "Using Node version: $NODE_VERSION"
40+
3741
# Create .env.local file with secrets
3842
cat > .env.local << EOF
3943
DISCORD_TOKEN=${{ secrets.DISCORD_TOKEN }}
4044
CLIENT_ID=${{ secrets.CLIENT_ID }}
41-
NODE_VERSION=${{ env.NODE_VERSION }}
4245
EOF
4346
4447
# Stop any existing containers

0 commit comments

Comments
 (0)