Skip to content

Commit 86fb264

Browse files
authored
try to make bazelisk work again (#117)
* try to use bazel node_modules for builds * try and make bazelisk work again
1 parent 46e2b32 commit 86fb264

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

.github/workflows/deployment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Deploy
2020
# Use npx to try to generate only
2121
# bazel generated node_modules
22-
run: npx bazelisk run //deploy:deploy
22+
run: yarn run bazelisk run //deploy:deploy
2323
env:
2424
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2525
STEAM_USERNAME: ${{ secrets.STEAM_USERNAME }}

.github/workflows/pull_request.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ jobs:
1616
uses: actions/setup-node@v2
1717
with:
1818
node-version: '16'
19-
- name: Install node deps
20-
run: yarn install
2119
- name: Directly affected tests
2220
run: yarn test
2321
env:
@@ -26,7 +24,7 @@ jobs:
2624
- name: All tests
2725
# Use npx to try to generate only
2826
# bazel generated node_modules
29-
run: npx bazelisk test //...
27+
run: yarn run bazelisk test //...
3028
env:
3129
STEAM_USERNAME: ${{ secrets.STEAM_USERNAME }}
3230
STEAM_PASSWORD: ${{ secrets.STEAM_PASSWORD }}

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,10 @@
5959
"yaml-validator": "^3.0.1"
6060
},
6161
"scripts": {
62-
"build": "yarn bazel build //...",
63-
"test": "yarn bazel run //tools/bazel:affected_files",
64-
"fix": "yarn run bazel run //:fix"
62+
"bazelisk": "npx --yes @bazel/bazelisk",
63+
"build": "yarn run bazelisk build //...",
64+
"test": "yarn run bazelisk run //tools/bazel:affected_files",
65+
"fix": "yarn run bazelisk run //:fix"
6566
},
6667
"dependencies": {
6768
"@bazel/labs": "^4.5.0",

0 commit comments

Comments
 (0)