Skip to content

Commit 5cd6412

Browse files
committed
add release script that builds .d.ts files
1 parent 4770a97 commit 5cd6412

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
id: changesets
2828
uses: changesets/action@v1
2929
with:
30-
publish: npx changeset publish
30+
publish: npm run publish
3131
env:
3232
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3333
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

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

packages/launchpad/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
},
1515
"scripts": {
1616
"start": "node index.js",
17-
"test": "cd test && node test.js"
17+
"test": "cd test && node test.js",
18+
"build": "tsc --build"
1819
},
1920
"repository": {
2021
"type": "git",

0 commit comments

Comments
 (0)