From ba4892cf07c90d0317fda74b0ea0520571603a95 Mon Sep 17 00:00:00 2001 From: Michael Taylor Date: Mon, 9 Sep 2024 16:09:32 -0400 Subject: [PATCH 1/3] ci: fix ci --- .github/workflows/build.yaml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index c9b80ac..87be228 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -29,24 +29,24 @@ jobs: - name: Build Project run: npm run build - - name: Debug NPM_TOKEN + - name: Extract Version and Determine Tag + id: extract-version run: | - if [ -z "${NPM_TOKEN}" ]; then - echo "NPM_TOKEN is not set or is empty." - exit 1 + VERSION=$(jq -r '.version' package.json) + if [[ "$VERSION" == *"alpha"* ]]; then + TAG="alpha" + elif [[ "$VERSION" == *"beta"* ]]; then + TAG="beta" else - echo "NPM_TOKEN is set." - echo "NPM_TOKEN length: ${#NPM_TOKEN}" - echo "NPM_TOKEN first 4 chars: ${NPM_TOKEN:0:4}**** (masked)" + TAG="latest" fi - env: - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + echo "VERSION=$VERSION" >> $GITHUB_ENV + echo "TAG=$TAG" >> $GITHUB_ENV - name: Publish to npm run: | - npm config set provenance true echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc - npm publish --tag next --access public + npm publish --tag ${{ env.TAG }} --access public env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} From fc4bdf8c59455decbf3fca590ac671864749c739 Mon Sep 17 00:00:00 2001 From: Michael Taylor Date: Mon, 9 Sep 2024 16:10:39 -0400 Subject: [PATCH 2/3] ci: fix ci --- scripts/release.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/scripts/release.sh b/scripts/release.sh index 3cc1bbc..d34adb5 100644 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -31,7 +31,6 @@ git push --set-upstream origin "$FEATURE_BRANCH" # Notify the user about the feature branch echo "Version bumped and committed on branch $FEATURE_BRANCH." -# Instructions for further actions (manual steps) -echo "Next steps:" -echo "- Review the changes in the feature branch." -echo "- Push the branch to the remote repository if necessary." +git checkout develop + +echo "Release PR set to origin on branch $FEATURE_BRANCH." From 8504b51935daa5e55cccbe9599d9d725a91786d4 Mon Sep 17 00:00:00 2001 From: Michael Taylor Date: Mon, 9 Sep 2024 16:10:52 -0400 Subject: [PATCH 3/3] chore(release): 0.0.1-alpha.6 --- CHANGELOG.md | 2 ++ package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2561a2a..63121d8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +### [0.0.1-alpha.6](https://github.com/DIG-Network/dig-cli/compare/v0.0.1-alpha.5...v0.0.1-alpha.6) (2024-09-09) + ### [0.0.1-alpha.5](https://github.com/DIG-Network/dig-cli/compare/v0.0.1-alpha.4...v0.0.1-alpha.5) (2024-09-09) diff --git a/package-lock.json b/package-lock.json index 537ea8a..0c95f92 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "dig-chia-cli", - "version": "0.0.1-alpha.5", + "version": "0.0.1-alpha.6", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "dig-chia-cli", - "version": "0.0.1-alpha.5", + "version": "0.0.1-alpha.6", "license": "ISC", "dependencies": { "async-mutex": "^0.5.0", diff --git a/package.json b/package.json index db81431..f4405fa 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dig-chia-cli", - "version": "0.0.1-alpha.5", + "version": "0.0.1-alpha.6", "description": "", "type": "commonjs", "main": "./dist/index.js",