Skip to content

Commit

Permalink
test npm release build steps
Browse files Browse the repository at this point in the history
  • Loading branch information
rgallettonf committed Jul 2, 2024
1 parent 1fe2d3d commit b810738
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 deletions.
16 changes: 4 additions & 12 deletions .github/workflows/releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,8 @@ jobs:
if: github.repository_owner == 'openziti'
run: ./publishSharedLib.sh

- name: Setup .npmrc
if: github.ref_type == 'tag'
# Setup .npmrc file to prepare for possible publish to npm
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
registry-url: 'https://registry.npmjs.org'

- name: Publish production release
if: (github.ref == 'refs/heads/main' && github.actor != 'dependabot[bot]') # do not publish if only doing a dep update initiated by dependabot
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
if: (github.ref == 'refs/heads/main' && github.actor != 'dependabot[bot]') # do not publish if only doing a dep update initiated by dependabot
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion projects/ziti-console-lib/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@openziti/ziti-console-lib",
"name": "ziti-console-lib",
"version": "0.3.0",
"repository": {
"type": "git",
Expand Down

0 comments on commit b810738

Please sign in to comment.