We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c9eb699 commit 079125dCopy full SHA for 079125d
.github/workflows/ci.yml
@@ -158,5 +158,13 @@ jobs:
158
node-version: "24"
159
registry-url: "https://registry.npmjs.org"
160
161
- - run: npm publish
+ - name: Publish if new version
162
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