Skip to content

Commit 8c426e6

Browse files
dimakiswtrocki
authored andcommitted
fix: addition of files to package.json to allow for only dist to be published
1 parent d28e436 commit 8c426e6

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@ jobs:
2727
run: yarn setupRelease $GITHUB_REF_SLUG
2828
- name: Publish packages
2929
working-directory: ./spectral
30-
run: npm publish dist --tag=dev
30+
run: npm publish --tag=dev
3131
env:
3232
NODE_AUTH_TOKEN: ${{ secrets.RHOAS_NPM_TOKEN }} #

spectral/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,5 +53,8 @@
5353
},
5454
"bin": {
5555
"spectral": "node_modules/.bin/spectral"
56-
}
56+
},
57+
"files": [
58+
"dist"
59+
]
5760
}

0 commit comments

Comments
 (0)