Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix NPM package file inclusions/exclusions #123

Merged
merged 3 commits into from
Nov 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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