diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 55e764e..cbf61ca 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,17 +10,6 @@ on: pull_request: branches: [main] workflow_dispatch: - inputs: - release-type: - description: 'Type of release (major, minor, patch, alpha)' - required: true - default: patch - type: choice - options: - - major - - minor - - patch - - alpha jobs: continous-integration: @@ -90,20 +79,8 @@ jobs: echo ${{ inputs.release-type }} git config --global user.name "Openwallet Foundation" - if [ ${{ inputs.release-type }} == 'alpha' ]; then - pnpm release --pre-dist-tag alpha prerelease --yes + if [[ $(cat lerna.json | grep version | head -1 | grep dev) ]]; then + pnpm publish from-package --no-push --no-private --yes --no-git-tag-version --dist-tag=alpha else - pnpm release ${{ inputs.release-type }} --force-publish --no-private --yes + pnpm publish from-package --no-push --no-private --yes --no-git-tag-version fi - - version=$(node -p "require('./lerna.json').version") - echo "LERNA_VERSION=$version" >> "$GITHUB_OUTPUT" - - - name: Create Github Release - uses: softprops/action-gh-release@v1 - with: - generate_release_notes: true - prerelease: ${{ inputs.release-type == 'alpha' }} - token: ${{ secrets.GH_TOKEN }} - tag_name: v${{ steps.publish.outputs.LERNA_VERSION }} - name: Release v${{ steps.publish.outputs.LERNA_VERSION }} diff --git a/README.md b/README.md index e3b7cc3..6d10ef4 100644 --- a/README.md +++ b/README.md @@ -27,4 +27,4 @@ The JavaScript wrapper is versioned independently from the native bindings. The | ----------- | ------------------ | | v0.2.9 | v0.1.x | | v0.3.x | v0.2.x | -| v0.4.1 | v0.3.x | +| v0.4.x | v0.3.x | diff --git a/lerna.json b/lerna.json index cc1ee54..1bd258c 100644 --- a/lerna.json +++ b/lerna.json @@ -1,6 +1,6 @@ { "$schema": "node_modules/lerna/schemas/lerna-schema.json", - "version": "0.2.2", + "version": "0.3.0", "npmClient": "pnpm", "command": { "version": { diff --git a/packages/askar-nodejs/package.json b/packages/askar-nodejs/package.json index cf46f67..40632de 100644 --- a/packages/askar-nodejs/package.json +++ b/packages/askar-nodejs/package.json @@ -1,6 +1,6 @@ { "name": "@openwallet-foundation/askar-nodejs", - "version": "0.2.3", + "version": "0.3.0", "license": "Apache-2.0", "description": "Nodejs wrapper for Askar", "main": "build/index", diff --git a/packages/askar-react-native/package.json b/packages/askar-react-native/package.json index 952fe3b..d1b1831 100644 --- a/packages/askar-react-native/package.json +++ b/packages/askar-react-native/package.json @@ -1,6 +1,6 @@ { "name": "@openwallet-foundation/askar-react-native", - "version": "0.2.3", + "version": "0.3.0", "license": "Apache-2.0", "description": "React Native wrapper for Askar", "main": "build/index", diff --git a/packages/askar-shared/package.json b/packages/askar-shared/package.json index 5630bba..6f38202 100644 --- a/packages/askar-shared/package.json +++ b/packages/askar-shared/package.json @@ -1,6 +1,6 @@ { "name": "@openwallet-foundation/askar-shared", - "version": "0.2.3", + "version": "0.3.0", "license": "Apache-2.0", "description": "Shared library for using Askar with NodeJS and React Native", "main": "build/index",