diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index b8473eb..98e072c 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,9 +1,8 @@ name: Publish package to npm on: - push: - tags: - - "v*" + release: + types: [published] jobs: build: @@ -16,6 +15,6 @@ jobs: registry-url: "https://registry.npmjs.org" - run: npm ci - run: npm run build - - run: npm publish --access public + - run: npm publish --tag ${{ github.event.release.prerelease == true && 'pre' || 'latest' }} --access public env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/package-lock.json b/package-lock.json index 4b5361e..e68119a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@archwayhq/keyring-go", - "version": "0.1.3", + "version": "0.2.0-rc.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@archwayhq/keyring-go", - "version": "0.1.3", + "version": "0.2.0-rc.1", "hasInstallScript": true, "license": "Apache-2.0", "os": [ diff --git a/package.json b/package.json index 42eda84..fc3daaf 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@archwayhq/keyring-go", - "version": "0.1.3", + "version": "0.2.0-rc.1", "description": "A Node.js native addon for the Cosmos Keyring Go library to store values using the OS keyring or the filesystem", "homepage": "https://docs.archway.io", "repository": "github:archway-network/keyring-go", diff --git a/prebuilds/darwin-arm64/node.napi.node b/prebuilds/darwin-arm64/node.napi.node index 0a4165c..812638c 100755 Binary files a/prebuilds/darwin-arm64/node.napi.node and b/prebuilds/darwin-arm64/node.napi.node differ diff --git a/prebuilds/darwin-x64/node.napi.node b/prebuilds/darwin-x64/node.napi.node index 4af8579..80f57ef 100755 Binary files a/prebuilds/darwin-x64/node.napi.node and b/prebuilds/darwin-x64/node.napi.node differ diff --git a/prebuilds/linux-x64/node.napi.node b/prebuilds/linux-x64/node.napi.node index b07e1db..0b4ecf2 100755 Binary files a/prebuilds/linux-x64/node.napi.node and b/prebuilds/linux-x64/node.napi.node differ