@@ -213,51 +213,6 @@ build:macos:
213
213
# Runs on tag pipeline where the tag is a prerelease or release version
214
214
- if : $CI_COMMIT_TAG =~ /^v[0-9]+\.[0-9]+\.[0-9]+(?:-.*[0-9]+)?$/
215
215
216
- build:prerelease :
217
- stage : build
218
- needs :
219
- - build:linux
220
- - build:windows
221
- - build:macos
222
- # Don't interrupt publishing job
223
- interruptible : false
224
- before_script :
225
- - echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ./.npmrc
226
- script :
227
- - echo 'Publishing library prerelease'
228
- - >
229
- nix-shell --run '
230
- npm publish --tag prerelease --access public;
231
- '
232
- - >
233
- for d in prebuilds/*; do
234
- tar \
235
- --create \
236
- --verbose \
237
- --file="prebuilds/$(basename $d).tar" \
238
- --directory=prebuilds \
239
- "$(basename $d)";
240
- done
241
- - >
242
- nix-shell -I nixpkgs=./pkgs.nix --packages gitAndTools.gh --run '
243
- gh release \
244
- create "$CI_COMMIT_TAG" \
245
- prebuilds/*.tar \
246
- --title "${CI_COMMIT_TAG}-$(date -u +"%Y-%m-%dT%H:%M:%SZ")" \
247
- --notes "" \
248
- --prerelease \
249
- --target staging \
250
- --repo "$GH_PROJECT_PATH";
251
- '
252
- after_script :
253
- - rm -f ./.npmrc
254
- rules :
255
- # Only runs on tag pipeline where the tag is a prerelease version
256
- # This requires dependencies to also run on tag pipeline
257
- # However version tag comes with a version commit
258
- # Dependencies must not run on the version commit
259
- - if : $CI_COMMIT_TAG =~ /^v[0-9]+\.[0-9]+\.[0-9]+-.*[0-9]+$/
260
-
261
216
integration:merge :
262
217
stage : integration
263
218
needs :
@@ -288,48 +243,3 @@ integration:merge:
288
243
- if : $CI_COMMIT_BRANCH == 'staging' && $CI_COMMIT_TITLE !~ /^[0-9]+\.[0-9]+\.[0-9]+(?:-.*[0-9]+)?$/
289
244
# Runs on tag pipeline where the tag is a prerelease or release version
290
245
- if : $CI_COMMIT_TAG =~ /^v[0-9]+\.[0-9]+\.[0-9]+(?:-.*[0-9]+)?$/
291
-
292
- release:distribution :
293
- stage : release
294
- needs :
295
- - build:linux
296
- - build:windows
297
- - build:macos
298
- - integration:merge
299
- # Don't interrupt publishing job
300
- interruptible : false
301
- before_script :
302
- - echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ./.npmrc
303
- script :
304
- - echo 'Publishing library'
305
- - >
306
- nix-shell --run '
307
- npm publish --access public;
308
- '
309
- - >
310
- for d in prebuilds/*; do
311
- tar \
312
- --create \
313
- --verbose \
314
- --file="prebuilds/$(basename $d).tar" \
315
- --directory=prebuilds \
316
- "$(basename $d)";
317
- done
318
- - >
319
- nix-shell -I nixpkgs=./pkgs.nix --packages gitAndTools.gh --run '
320
- gh release \
321
- create "$CI_COMMIT_TAG" \
322
- prebuilds/*.tar \
323
- --title "${CI_COMMIT_TAG}-$(date -u +"%Y-%m-%dT%H:%M:%SZ")" \
324
- --notes "" \
325
- --target master \
326
- --repo "$GH_PROJECT_PATH";
327
- '
328
- after_script :
329
- - rm -f ./.npmrc
330
- rules :
331
- # Only runs on tag pipeline where the tag is a release version
332
- # This requires dependencies to also run on tag pipeline
333
- # However version tag comes with a version commit
334
- # Dependencies must not run on the version commit
335
- - if : $CI_COMMIT_TAG =~ /^v[0-9]+\.[0-9]+\.[0-9]+$/
0 commit comments