Skip to content

Commit 5279684

Browse files
alexander-fensterstephenplusplus
authored andcommitted
chore: workaround for repo-tools EPERM (#35)
1 parent 73474b9 commit 5279684

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

packages/google-privacy-dlp/.circleci/config.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,12 @@ jobs:
9292
fi
9393
- run:
9494
name: Install modules and dependencies.
95-
command: npm install
95+
command: |-
96+
npm install
97+
repo_tools="node_modules/@google-cloud/nodejs-repo-tools/bin/tools"
98+
if ! test -x "$repo_tools"; then
99+
chmod +x "$repo_tools"
100+
fi
96101
- run:
97102
name: Run unit tests.
98103
command: npm test
@@ -127,6 +132,10 @@ jobs:
127132
command: |
128133
mkdir -p /home/node/.npm-global
129134
npm install
135+
repo_tools="node_modules/@google-cloud/nodejs-repo-tools/bin/tools"
136+
if ! test -x "$repo_tools"; then
137+
chmod +x "$repo_tools"
138+
fi
130139
npm link
131140
environment:
132141
NPM_CONFIG_PREFIX: /home/node/.npm-global
@@ -153,7 +162,12 @@ jobs:
153162
- run: *remove_package_lock
154163
- run:
155164
name: Install modules and dependencies.
156-
command: npm install
165+
command: |-
166+
npm install
167+
repo_tools="node_modules/@google-cloud/nodejs-repo-tools/bin/tools"
168+
if ! test -x "$repo_tools"; then
169+
chmod +x "$repo_tools"
170+
fi
157171
- run:
158172
name: Build documentation.
159173
command: npm run docs

0 commit comments

Comments
 (0)