Skip to content

Commit b52a2f7

Browse files
committed
ci: fix publish ci
1 parent 4284e04 commit b52a2f7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/publish.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ jobs:
3333
run: pdm sync -d
3434

3535
- name: Publish
36-
run: '[[ "$GIT_TAG" =~ ^(.*)-[0-9]+\.[0-9]+\.[0-9]+$ ]] && export PROJECT="${BASH_REMATCH[1]}" && npx nx release publish --projects $PROJECT'
36+
run: '[[ ${{ github.ref_name }} =~ ^(.*)-[0-9]+\.[0-9]+\.[0-9]+$ ]] && export PROJECT="${BASH_REMATCH[1]}" && npx nx release publish --projects $PROJECT'
37+
shell: bash
3738
env:
3839
NODE_AUTH_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }}
3940
NPM_CONFIG_PROVENANCE: true

0 commit comments

Comments
 (0)