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:
parent
130f52e6b7
commit
0f66360646
2
.github/workflows/release.yaml
vendored
2
.github/workflows/release.yaml
vendored
@ -322,6 +322,8 @@ jobs:
|
|||||||
echo "Updating version in lib/vscode/product.json"
|
echo "Updating version in lib/vscode/product.json"
|
||||||
tmp=$(mktemp)
|
tmp=$(mktemp)
|
||||||
jq '.codeServerVersion = "$VERSION"' release/lib/vscode/product.json > "$tmp" && mv "$tmp" release/lib/vscode/product.json
|
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
|
- name: Compress release package
|
||||||
run: tar -czf package.tar.gz release
|
run: tar -czf package.tar.gz release
|
||||||
|
Reference in New Issue
Block a user