Skip to content

Commit fc23d0a

Browse files
Add npmignore
1 parent d20c097 commit fc23d0a

File tree

2 files changed

+32
-1
lines changed

2 files changed

+32
-1
lines changed

.github/workflows/npm-publish.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,13 @@ jobs:
1616
with:
1717
node-version: 20
1818
- run: npm ci
19-
- run: npm install --save-dev @types/commander
2019
- run: npm run build
2120

21+
- uses: actions/upload-artifact@v3
22+
with:
23+
name: app-build
24+
path: dist
25+
2226
publish-npm:
2327
needs: build
2428
runs-on: ubuntu-latest
@@ -28,6 +32,9 @@ jobs:
2832
with:
2933
node-version: 20
3034
registry-url: https://registry.npmjs.org/
35+
uses: actions/download-artifact@v3
36+
with:
37+
name: app-build
3138
- run: npm ci
3239
- run: npm publish
3340
env:

.npmignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Exclude folders
2+
.github/
3+
assets/
4+
src/
5+
6+
# Exclude specific files
7+
output.json
8+
sample.tpl
9+
tsconfig.json
10+
tsup.config.ts
11+
12+
# Include the dist folder
13+
!dist/
14+
15+
# Ignore IDE and editor files
16+
.vscode/
17+
.idea/
18+
*.iml
19+
.DS_Store
20+
Thumbs.db
21+
22+
# Ignore miscellaneous
23+
npm-debug.log*
24+
package-lock.json

0 commit comments

Comments
 (0)