Archived
1
0

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`.
This commit is contained in:
Joe Previte 2022-12-02 11:03:20 -07:00
parent 130f52e6b7
commit 0f66360646
No known key found for this signature in database
GPG Key ID: 2C91590C6B742C24

View File

@ -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