Skip to content

Commit 5fb8b46

Browse files
committed
fix(package): build before publishing
1 parent 6b5daa0 commit 5fb8b46

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

.github/workflows/publish.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ jobs:
1616
registry-url: 'https://npm.pkg.github.com'
1717
always-auth: true
1818
- run: yarn
19-
- run: yarn publish
19+
- run: yarn build && yarn publish
2020
env:
2121
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@
44
"license": "MIT",
55
"author": "TerranOne",
66
"main": "dist/index.js",
7-
"typings": "dist/index.d.ts",
7+
"types": "dist/index.d.ts",
88
"type": "commonjs",
99
"files": [
10-
"dist",
11-
"src"
10+
"dist"
1211
],
1312
"scripts": {
1413
"build": "tsc --module commonjs && webpack --mode production",

0 commit comments

Comments
 (0)