Skip to content

Commit 4cc8e19

Browse files
committed
chore: fix release
1 parent 97314f9 commit 4cc8e19

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

.github/workflows/deployment.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,13 @@ jobs:
5454
- name: Publish to NPM
5555
env:
5656
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
57-
run: npm --workspace packages/diracx-web-components publish
57+
run: |
58+
TAG_NAME="${{ needs.release-please.outputs.tag_name }}"
59+
if [[ "$TAG_NAME" == *-* ]]; then
60+
npm --workspace packages/diracx-web-components publish --tag latest
61+
else
62+
npm --workspace packages/diracx-web-components publish
63+
fi
5864
5965
# Storybook is built and deployed to GitHub Pages
6066
# -----------------------------------------------
@@ -196,10 +202,17 @@ jobs:
196202
cd diracx-charts
197203
pre-commit run --all-files || true
198204
205+
- name: Install pixi
206+
uses: prefix-dev/setup-pixi@v0.8.1
207+
199208
- name: Commit and push changes
200209
if: success()
201210
run: |
202211
cd diracx-charts
212+
213+
# Update the diagram to reflect the updated version number
214+
pixi run generate-diagram
215+
203216
git add -A
204217
205218
if ! git diff --cached --quiet; then

0 commit comments

Comments
 (0)