Skip to content

Commit 8a39b0c

Browse files
committed
Set up publishing of @webref/idl with Lerna
Lerna is a tool for managing monorepos, and while @webref/idl is the only package here now, the packages/* structure makes sense. Fixes #63.
1 parent c4ea558 commit 8a39b0c

File tree

10 files changed

+7587
-201
lines changed

10 files changed

+7587
-201
lines changed

.github/workflows/test.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Test
2+
on:
3+
pull_request: {}
4+
push:
5+
branches:
6+
- master
7+
jobs:
8+
test:
9+
runs-on: ubuntu-18.04
10+
strategy:
11+
matrix:
12+
node-version: ['10', '12', '14']
13+
name: Node.js ${{ matrix.node-version }}
14+
steps:
15+
- uses: actions/checkout@v2
16+
- uses: actions/setup-node@v1
17+
with:
18+
node-version: ${{ matrix.node-version }}
19+
- run: npm ci
20+
- run: npx lerna bootstrap
21+
- run: npm test

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
node_modules/
2+
packages/idl/*.idl
23
wpt/

lerna.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"packages": [
3+
"packages/*"
4+
],
5+
"version": "0.0.1"
6+
}

0 commit comments

Comments
 (0)