Skip to content

Commit 3b0f604

Browse files
devversionmmalerba
authored andcommitted
build: fix write permissions for bazel npm_package output (#17273)
1 parent 83989d0 commit 3b0f604

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

scripts/deploy/publish-docs-content.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,11 @@ echo "Removed everything from the docs-content repository. Copying package outpu
8484
# Copy the package output to the docs-content repository.
8585
cp -R ${examplesPackagePath}/* ${docsContentPath}
8686

87+
# Update permissions for the copied "npm_package". Bazel makes these files readonly
88+
# in the "bazel-out", but for publishing, they should be writable. Also it's necessary
89+
# in order to be able to update the "package.json" version
90+
chmod -R u+w ${docsContentPath}
91+
8792
echo "Successfully copied package output into the docs-content repository."
8893

8994
if [[ $(git ls-remote origin "refs/tags/${buildTagName}") ]]; then

0 commit comments

Comments
 (0)