Skip to content

Commit 079125d

Browse files
committed
chore: ci
1 parent c9eb699 commit 079125d

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,5 +158,13 @@ jobs:
158158
node-version: "24"
159159
registry-url: "https://registry.npmjs.org"
160160

161-
- run: npm publish
161+
- name: Publish if new version
162162
working-directory: apis/timetable-generator-v1/integrations/typescript
163+
run: |
164+
npm publish 2>&1 | tee publish.log || {
165+
if grep -q "cannot publish over the previously published" publish.log; then
166+
echo "Version already published, skipping"
167+
else
168+
exit 1
169+
fi
170+
}

0 commit comments

Comments
 (0)