Skip to content
This repository has been archived by the owner on Sep 26, 2023. It is now read-only.

Commit

Permalink
Force npm publish to make a public package. (#126)
Browse files Browse the repository at this point in the history
We don't want a private package, we don't pay for private packages. The
Github action defaults to a private access which fails. This change
forces public access, and fixes a branch matching pattern in
the CI action.

Signed-off-by: Jeff Moroski <jmoroski@vmware.com>
  • Loading branch information
Jeff Moroski committed Aug 26, 2020
1 parent 42ccd0d commit 5462dea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-angular-api-client.yml
Expand Up @@ -10,7 +10,7 @@ on:

pull_request:
branches:
- angular
- angular-main
paths:
- 'api-client/**'

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish-angular-api-client.yml
Expand Up @@ -25,7 +25,7 @@ jobs:
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm run build:${{ matrix.packages }} --if-present
- run: npm publish dist/vcd/${{ matrix.packages }} --dry-run
- run: npm publish dist/vcd/${{ matrix.packages }} --dry-run --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
publish-npm-packages:
Expand All @@ -45,6 +45,6 @@ jobs:
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm run build:${{ matrix.packages }} --if-present
- run: npm publish dist/vcd/${{ matrix.packages }}
- run: npm publish dist/vcd/${{ matrix.packages }} --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 comments on commit 5462dea

Please sign in to comment.