Skip to content

Commit

Permalink
fix: Fix typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
GSMLG-BOT committed Apr 18, 2024
1 parent 82ca40c commit ad6005c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ jobs:
}
EOF
- name: 🏗 Run install semantic-release
run: npm install --save-dev semantic-release-monorepo semantic-release @semantic-release/exec
run: npm install --save-dev semantic-release @semantic-release/exec
- name: 🚀 Release
id: semantic
run: npx semantic-release --extends semantic-release-monorepo
run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down
15 changes: 8 additions & 7 deletions .releaserc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,6 @@ plugins:
- "@semantic-release/github"
- - "@semantic-release/exec"
- "prepareCmd": |
echo new_release_version=${nextRelease.version} >> $GITHUB_OUTPUT
echo new_release_type=${nextRelease.type} >> $GITHUB_OUTPUT
echo new_release_major_version=$(echo ${nextRelease.version} | cut -d "." -f 1) >> $GITHUB_OUTPUT
echo new_release_minor_version=$(echo ${nextRelease.version} | cut -d "." -f 2) >> $GITHUB_OUTPUT
echo new_release_patch_version=$(echo ${nextRelease.version} | cut -d "." -f 3) >> $GITHUB_OUTPUT
echo new_release_channel=${nextRelease.channel} >> $GITHUB_OUTPUT
echo new_release_notes="${nextRelease.notes}" >> $GITHUB_OUTPUT
mkdir -p build
GOOS=linux GOARCH=amd64 go build -ldflags "-w -s -X github.com/gsmlg-dev/gsmlg-cli/cmd.Version=${nextRelease.version}" -o build/gsmlg-cli_linux_amd64 main.go ;
GOOS=windows GOARCH=amd64 go build -ldflags "-w -s -X github.com/gsmlg-dev/gsmlg-cli/cmd.Version=${nextRelease.version}" -o build/gsmlg-cli_amd64.exe main.go ;
Expand All @@ -24,6 +17,14 @@ plugins:
echo pubhlish gsmlg-cli ${nextRelease.version} ${nextRelease.type}
echo "${nextRelease.notes}"
echo "new_release_version=${nextRelease.version}" >> $GITHUB_OUTPUT
echo "new_release_type=${nextRelease.type}" >> $GITHUB_OUTPUT
echo "new_release_major_version=$(echo ${nextRelease.version} | cut -d '.' -f 1)" >> $GITHUB_OUTPUT
echo "new_release_minor_version=$(echo ${nextRelease.version} | cut -d '.' -f 2)" >> $GITHUB_OUTPUT
echo "new_release_patch_version=$(echo ${nextRelease.version} | cut -d '.' -f 3)" >> $GITHUB_OUTPUT
echo "new_release_channel=${nextRelease.channel}" >> $GITHUB_OUTPUT
echo "new_release_notes=${nextRelease.notes}" >> $GITHUB_OUTPUT
branches:
- +([0-9])?(.{+([0-9]),x}).x
- main
Expand Down

0 comments on commit ad6005c

Please sign in to comment.