Skip to content

Commit

Permalink
Collect artifacts on PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
brantburnett committed Nov 27, 2023
1 parent 0223c7e commit bc9b714
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
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

0 comments on commit bc9b714

Please sign in to comment.