Skip to content

Commit ec7954d

Browse files
fix version resolution and ci
1 parent 0f076e2 commit ec7954d

File tree

3 files changed

+17
-8
lines changed

3 files changed

+17
-8
lines changed

.github/workflows/deploy-packages.yml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,11 @@ name: Deploy
88
jobs:
99
deploy-packages:
1010
name: Packages
11-
runs-on: k8s-ubuntu-x64-4cores
11+
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v4
1414
with:
1515
fetch-depth: 0
16-
token: ${{ secrets.ORG_GITHUB_EMU_READ_TOKEN }}
1716

1817
- uses: actions/setup-node@v4
1918
with:
@@ -32,13 +31,23 @@ jobs:
3231
env:
3332
GITHUB_TOKEN: ${{ github.token }}
3433

35-
- name: Upload VSIX to GitHub Release
34+
- name: Upload VSIX to Package-Specific Release
3635
if: steps.changesets.outputs.published == 'true'
3736
shell: bash
3837
run: |
39-
TAG_NAME=$(git describe --tags --abbrev=0)
40-
VSIX_FILE=$(ls *.vsix)
38+
PACKAGE_NAME="urlspec-vscode-extension"
39+
VERSION=$(echo '${{ steps.changesets.outputs.publishedPackages }}' | jq -r ".[] | select(.name == \"$PACKAGE_NAME\") | .version")
4140
42-
gh release upload "$TAG_NAME" "$VSIX_FILE" --clobber
41+
if [ -n "$VERSION" ] && [ "$VERSION" != "null" ]; then
42+
TAG_NAME="$PACKAGE_NAME@$VERSION"
43+
echo "Target Tag: $TAG_NAME"
44+
45+
cd packages/$PACKAGE_NAME
46+
47+
VSIX_FILE=$(ls *.vsix)
48+
gh release upload "$TAG_NAME" "$VSIX_FILE" --clobber
49+
else
50+
echo "No update for $PACKAGE_NAME in this release."
51+
fi
4352
env:
4453
GITHUB_TOKEN: ${{ github.token }}

packages/builder/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"test:watch": "vitest watch"
3838
},
3939
"dependencies": {
40-
"@urlspec/language": "workspace:*"
40+
"@urlspec/language": "^0.0.0"
4141
},
4242
"devDependencies": {
4343
"@types/node": "24",

packages/urlspec-vscode-extension/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
]
5555
},
5656
"dependencies": {
57-
"@urlspec/language": "workspace:*",
57+
"@urlspec/language": "^0.0.0",
5858
"langium": "^4.1.3",
5959
"vscode-languageclient": "^9.0.1",
6060
"vscode-languageserver": "^9.0.1"

0 commit comments

Comments
 (0)