Skip to content

Commit b129341

Browse files
committed
add build step to main workflow
1 parent 3d4cf1a commit b129341

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

.github/workflows/main.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,18 @@ jobs:
2323
run: npm install
2424

2525
- name: Run eslint
26-
run: npm run lint
26+
run: npm run lint
27+
build:
28+
name: Build
29+
runs-on: ubuntu-latest
30+
steps:
31+
- uses: actions/checkout@v3
32+
- uses: actions/setup-node@v3
33+
with:
34+
node-version: 18.x
35+
36+
- name: Install Dependencies
37+
run: npm install
38+
39+
- name: Build type declaration files
40+
run: npm run build

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
"lint": "npx eslint ./packages/**/*.js",
1818
"lint:fix": "npx eslint ./packages/**/*.js --fix",
1919
"lint:fix-dry": "npx eslint ./packages/**/*.js --fix-dry-run",
20-
"release": "npm run build -w @bluecadet/launchpad && changeset publish"
20+
"build": "npm run build -w @bluecadet/launchpad",
21+
"release": "npm run build && changeset publish"
2122
},
2223
"repository": {
2324
"type": "git",

0 commit comments

Comments
 (0)