Skip to content

Commit

Permalink
Merge pull request #5 from DIG-Network/release/v0.0.1-alpha.6
Browse files Browse the repository at this point in the history
Release/v0.0.1 alpha.6
  • Loading branch information
MichaelTaylor3D authored Sep 9, 2024
2 parents c7921af + 8504b51 commit 3873707
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 18 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
7 changes: 3 additions & 4 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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."

0 comments on commit 3873707

Please sign in to comment.