Skip to content

Commit

Permalink
Fix NPM package file inclusions/exclusions (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
brantburnett authored Nov 27, 2023
1 parent 0223c7e commit dc642e3
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 2 deletions.
1 change: 1 addition & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"extensions": [
"dbaeumer.vscode-eslint",
"orta.vscode-jest",
"github.vscode-github-actions",
"github.vscode-pull-request-github",
"ms-azuretools.vscode-docker"
]
Expand Down
16 changes: 15 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,18 @@ jobs:
pushd packages/couchbase-index-manager && npm publish && popd &&
pushd packages/couchbase-index-manager-cli && npm publish && popd
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Pack NPM
if: ${{!startsWith(github.ref, 'refs/tags/')}} # Only on non-tags
run: |
pushd packages/couchbase-index-manager && npm pack && popd &&
pushd packages/couchbase-index-manager-cli && npm pack && popd
- name: Archive
if: ${{!startsWith(github.ref, 'refs/tags/')}} # Only on non-tags
uses: actions/upload-artifact@v3
with:
name: npm-packages
path: |
packages/couchbase-index-manager/*.tgz
packages/couchbase-index-manager-cli/*.tgz
5 changes: 5 additions & 0 deletions packages/couchbase-index-manager-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@
"cd",
"continuous"
],
"files": [
"bin/**",
"dist/**/*.ts",
"dist/**/*.js"
],
"devDependencies": {
"@babel/core": "^7.15.0",
"@babel/preset-env": "^7.15.0",
Expand Down
3 changes: 2 additions & 1 deletion packages/couchbase-index-manager/.npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ Dockerfile
/testbin
/env
.env
/.devcontainer
/.devcontainer
global.d.ts
4 changes: 4 additions & 0 deletions packages/couchbase-index-manager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@
"cd",
"continuous"
],
"files": [
"dist/**/*.ts",
"dist/**/*.js"
],
"devDependencies": {
"@babel/core": "^7.15.0",
"@babel/preset-env": "^7.15.0",
Expand Down

0 comments on commit dc642e3

Please sign in to comment.