Skip to content

Commit 038e0a3

Browse files
authored
Merge pull request #381 from dbartol/dbartol/publish
Avoid need for `build` directory
2 parents 8cb5661 + 3e7084f commit 038e0a3

File tree

5 files changed

+15
-1335
lines changed

5 files changed

+15
-1335
lines changed

.github/workflows/main.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,12 @@ jobs:
1818
with:
1919
node-version: '10.18.1'
2020

21+
- name: Install dependencies
22+
run: node common/scripts/install-run-rush.js install
23+
shell: bash
24+
2125
- name: Build
22-
run: |
23-
cd build
24-
npm install
25-
npm run build-ci
26+
run: node common/scripts/install-run-rush.js build
2627
shell: bash
2728

2829
- name: Prepare artifacts
@@ -55,11 +56,12 @@ jobs:
5556
node-version: '10.18.1'
5657

5758
# We have to build the dependencies in `lib` before running any tests.
59+
- name: Install dependencies
60+
run: node common/scripts/install-run-rush.js install
61+
shell: bash
62+
5863
- name: Build
59-
run: |
60-
cd build
61-
npm install
62-
npm run build-ci
64+
run: node common/scripts/install-run-rush.js build
6365
shell: bash
6466

6567
- name: Lint

.github/workflows/release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ jobs:
3333
with:
3434
node-version: '10.18.1'
3535

36+
- name: Install dependencies
37+
run: node common/scripts/install-run-rush.js install
38+
shell: bash
39+
3640
- name: Build
37-
run: |
38-
cd build
39-
npm install
40-
# Release build instead of dev build.
41-
npm run build-release
41+
run: node common/scripts/install-run-rush.js build --release
4242
shell: bash
4343

4444
- name: Prepare artifacts

build/README.md

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)