chore(ci): embed the SDE version as minor version (instead of pre-release version) (#47)

This helps out with npm to understand what "^9" means, as that normally
skips pre-release versions.
This commit is contained in:
Patric Stout
2024-05-09 17:11:29 +02:00
committed by GitHub
parent 768921793e
commit 141844e72b

View File

@@ -59,7 +59,7 @@ jobs:
- name: Validate SDE version
run: |
SDE_VERSION=$(date -r sde.zip "+%F" | sed 's/-//g')
RELEASE_SDE_VERSION=$(echo ${{ github.event.release.tag_name }} | cut -d- -f2)
RELEASE_SDE_VERSION=$(echo ${{ github.ref_name }} | cut -d. -f3)
echo "SDK version: ${SDE_VERSION}"
echo "Release version: ${RELEASE_SDE_VERSION}"
@@ -89,7 +89,7 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
registry: "https://npm.pkg.github.com"
package: package.json
- name: Publish to R2 bucket
run: |
rclone copy dist eveshipfit:eveshipfit/${{ github.event.release.tag_name }}/ --progress --exclude=*.{js,js.map,d.ts}