diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index a45a5d2..db2aab8 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -14,6 +14,7 @@ "extensions": [ "dbaeumer.vscode-eslint", "orta.vscode-jest", + "github.vscode-github-actions", "github.vscode-pull-request-github", "ms-azuretools.vscode-docker" ] diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index eb25e54..9b43bd3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 }} \ No newline at end of file + 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 diff --git a/packages/couchbase-index-manager-cli/package.json b/packages/couchbase-index-manager-cli/package.json index bc7d743..5b8405e 100644 --- a/packages/couchbase-index-manager-cli/package.json +++ b/packages/couchbase-index-manager-cli/package.json @@ -33,6 +33,11 @@ "cd", "continuous" ], + "files": [ + "bin/**", + "dist/**/*.ts", + "dist/**/*.js" + ], "devDependencies": { "@babel/core": "^7.15.0", "@babel/preset-env": "^7.15.0", diff --git a/packages/couchbase-index-manager/.npmignore b/packages/couchbase-index-manager/.npmignore index 1b0250a..4565830 100644 --- a/packages/couchbase-index-manager/.npmignore +++ b/packages/couchbase-index-manager/.npmignore @@ -16,4 +16,5 @@ Dockerfile /testbin /env .env -/.devcontainer \ No newline at end of file +/.devcontainer +global.d.ts \ No newline at end of file diff --git a/packages/couchbase-index-manager/package.json b/packages/couchbase-index-manager/package.json index b927fd6..7f2fe29 100644 --- a/packages/couchbase-index-manager/package.json +++ b/packages/couchbase-index-manager/package.json @@ -32,6 +32,10 @@ "cd", "continuous" ], + "files": [ + "dist/**/*.ts", + "dist/**/*.js" + ], "devDependencies": { "@babel/core": "^7.15.0", "@babel/preset-env": "^7.15.0",