From 0f66360646b842a620af2d5e7ce40da7f76b5931 Mon Sep 17 00:00:00 2001 From: Joe Previte Date: Fri, 2 Dec 2022 11:03:20 -0700 Subject: [PATCH] fix: keep product.json file permissions in release When we added the change to modify the `package.json` version using `mv` and `jq` we didn't account for lost file permissions. This caused a bug only happening in CI. This should fix it by giving it 755 via `chmod`. --- .github/workflows/release.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 429f5d3455fc..9debf7de4690 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -322,6 +322,8 @@ jobs: echo "Updating version in lib/vscode/product.json" tmp=$(mktemp) jq '.codeServerVersion = "$VERSION"' release/lib/vscode/product.json > "$tmp" && mv "$tmp" release/lib/vscode/product.json + # Ensure it has the same permissions as before + chmod 755 release/lib/vscode/product.json - name: Compress release package run: tar -czf package.tar.gz release