Skip to content

Commit

Permalink
fix: GH actions
Browse files Browse the repository at this point in the history
  • Loading branch information
davidvanleeuwen committed Feb 26, 2024
1 parent 9c60aed commit 0c90069
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/release_client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
if: startsWith(github.event.inputs.release-type, 'pre') != true
run: |
NEW_VERSION=$(npm --no-git-tag-version version ${{ github.event.inputs.release-type }})
echo "NEW_VERSION=client-$NEW_VERSION" >> $GITHUB_ENV
echo "NEW_VERSION=$NEW_VERSION" >> $GITHUB_ENV
echo "RELEASE_TAG=latest" >> $GITHUB_ENV
env:
RELEASE_TYPE: ${{ github.event.inputs.release-type }}
Expand All @@ -52,7 +52,7 @@ jobs:
if: startsWith(github.event.inputs.release-type, 'pre')
run: |
NEW_VERSION=$(npm --no-git-tag-version --preid=beta version ${{ github.event.inputs.release-type }})
echo "NEW_VERSION=client-$NEW_VERSION" >> $GITHUB_ENV
echo "NEW_VERSION=$NEW_VERSION" >> $GITHUB_ENV
echo "RELEASE_TAG=beta" >> $GITHUB_ENV
env:
RELEASE_TYPE: ${{ github.event.inputs.release-type }}
Expand All @@ -75,15 +75,14 @@ jobs:
- name: Update GitHub release documentation
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ env.NEW_VERSION }}
tag_name: client-${{ env.NEW_VERSION }}
body: ${{ steps.get-changelog.outputs.changelog }}
prerelease: ${{ startsWith(github.event.inputs.release-type, 'pre') }}

- name: Commit CHANGELOG.md and package.json changes and create tag
run: |
git add client/package.json client/CHANGELOG.md
git commit -m "release ${{ env.NEW_VERSION }}"
working-directory: client
- name: Install dependencies
run: yarn install
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release_server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
uses: Ilshidur/action-discord@master

- name: Create and push new t]ag
- name: Create and push new tag
run: |
git tag ${{ env.NEW_TAG }}
git push origin ${{ env.NEW_TAG }}

0 comments on commit 0c90069

Please sign in to comment.