Skip to content

Commit

Permalink
Add tagging of packages
Browse files Browse the repository at this point in the history
  • Loading branch information
arthuro555 committed Oct 28, 2024
1 parent 2e9b7a4 commit 25a5f46
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/on-gdevelop-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,13 @@ jobs:
- name: Build & publish
run: |
source ../emsdk/emsdk_env.sh
npm publish --provenance --access public
npm publish --provenance --access public --tag prerelease
PACKAGE="gdcore-tools@$(jq -r '.version' package.json)"
if ! ${{ github.event.client_payload.release.prerelease }}; then
echo "Marking as latest"
npm dist-tag add $PACKAGE latest
fi
npm dist-tag add $PACKAGE '${{ github.event.client_payload.release.tag_name }}'
working-directory: gdcore-tools
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down

0 comments on commit 25a5f46

Please # to comment.