Skip to content

Commit

Permalink
update version and yml
Browse files Browse the repository at this point in the history
  • Loading branch information
playground committed Dec 9, 2022
1 parent 5d27cdb commit 2ac4fcb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/publish-hzn-cli.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,18 @@
name: Publish hzn-cli

on:
release:
types: [published]

types: [created]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v2
- uses: actions/setup-node@v3
with:
node-version: "16.x"
registry-url: "https://registry.npmjs.org"
- run: npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN}
- run: npm install
- run: npm ci
- run: npm publish --access public
env:
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hzn-cli",
"version": "0.4.6",
"version": "0.4.7",
"description": "Open Horizon CLI toolkit helps streamline the process of preparing node agents and perform tasks between orgs environments",
"main": "./build/index.js",
"bin": {
Expand Down

0 comments on commit 2ac4fcb

Please sign in to comment.