Skip to content

Commit 2d17ce1

Browse files
alexander-fensterstephenplusplus
authored andcommitted
chore: workaround for repo-tools EPERM (#19)
1 parent 84379e4 commit 2d17ce1

1 file changed

Lines changed: 16 additions & 2 deletions

File tree

packages/google-cloud-oslogin/.circleci/config.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,12 @@ jobs:
7474
fi
7575
- run:
7676
name: Install modules and dependencies.
77-
command: npm install
77+
command: |-
78+
npm install
79+
repo_tools="node_modules/@google-cloud/nodejs-repo-tools/bin/tools"
80+
if ! test -x "$repo_tools"; then
81+
chmod +x "$repo_tools"
82+
fi
7883
- run:
7984
name: Run unit tests.
8085
command: npm test
@@ -109,6 +114,10 @@ jobs:
109114
command: |
110115
mkdir -p /home/node/.npm-global
111116
npm install
117+
repo_tools="node_modules/@google-cloud/nodejs-repo-tools/bin/tools"
118+
if ! test -x "$repo_tools"; then
119+
chmod +x "$repo_tools"
120+
fi
112121
npm link
113122
environment:
114123
NPM_CONFIG_PREFIX: /home/node/.npm-global
@@ -135,7 +144,12 @@ jobs:
135144
- run: *remove_package_lock
136145
- run:
137146
name: Install modules and dependencies.
138-
command: npm install
147+
command: |-
148+
npm install
149+
repo_tools="node_modules/@google-cloud/nodejs-repo-tools/bin/tools"
150+
if ! test -x "$repo_tools"; then
151+
chmod +x "$repo_tools"
152+
fi
139153
- run:
140154
name: Build documentation.
141155
command: npm run docs

0 commit comments

Comments
 (0)