Skip to content

Commit 0674b89

Browse files
committed
release: fix release pipeline
1 parent 117391f commit 0674b89

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

.github/workflows/publish.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,14 @@ jobs:
2727
node-version: 24
2828
cache: "npm"
2929
cache-dependency-path: package-lock.json
30-
31-
- name: Publish
32-
run: '[[ ${{ github.ref_name }} =~ ^(.*)-[0-9]+\.[0-9]+\.[0-9]+$ ]] && export PROJECT="${BASH_REMATCH[1]}" && npx nx release publish --projects $PROJECT --verbose'
30+
- name: Get Release Projects
31+
id: get_release_project
32+
env:
33+
TAG: ${{ github.ref_name }}
34+
run: '[[ ${{ github.ref_name }} =~ ^(.*)-[0-9]+\.[0-9]+\.[0-9]+$ ]] && export PROJECT="${BASH_REMATCH[1]}" && echo "release_project=${BASH_REMATCH[1]}" >> $GITHUB_OUTPUT'
3335
shell: bash
36+
- name: Publish
37+
run: npx nx release publish --projects ${{ steps.get_release_project.outputs.release_project }} --verbose
3438
env:
3539
NPM_CONFIG_PROVENANCE: true
3640
NPM_CONFIG_ACCESS: public

sftkit/project.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,14 @@
4646
"command": "uv build",
4747
"cwd": "{projectRoot}"
4848
}
49+
},
50+
"nx-release-publish": {
51+
"executor": "nx:run-commands",
52+
"inputs": ["default"],
53+
"options": {
54+
"commands": ["uv build --package sftkit", "uv publish"],
55+
"parallel": false
56+
}
4957
}
5058
}
5159
}

0 commit comments

Comments
 (0)