ci: chown npm-related paths to owner of /workspace in app container ()

This commit is contained in:
Jennifer Richards 2022-03-30 18:38:05 -03:00 committed by GitHub
parent 1d8746cd63
commit fb41207227
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,6 +4,10 @@ WORKSPACEDIR="/workspace"
service rsyslog start
# fix permissions for npm-related paths
WORKSPACE_UID_GID=$(stat --format="%u:%g" "$WORKSPACEDIR")
chown -R "$WORKSPACE_UID_GID" "$WORKSPACEDIR/node_modules" "$WORKSPACEDIR/.parcel-cache"
# Generate static assets
npm install --prefer-offline --no-audit