Skip to content

Commit 934796f

Browse files
committed
Disable prerelease and release tag pipelines until native addons is available
1 parent 7df6b4d commit 934796f

File tree

1 file changed

+0
-90
lines changed

1 file changed

+0
-90
lines changed

.gitlab-ci.yml

Lines changed: 0 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -213,51 +213,6 @@ build:macos:
213213
# Runs on tag pipeline where the tag is a prerelease or release version
214214
- if: $CI_COMMIT_TAG =~ /^v[0-9]+\.[0-9]+\.[0-9]+(?:-.*[0-9]+)?$/
215215

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-
261216
integration:merge:
262217
stage: integration
263218
needs:
@@ -288,48 +243,3 @@ integration:merge:
288243
- if: $CI_COMMIT_BRANCH == 'staging' && $CI_COMMIT_TITLE !~ /^[0-9]+\.[0-9]+\.[0-9]+(?:-.*[0-9]+)?$/
289244
# Runs on tag pipeline where the tag is a prerelease or release version
290245
- 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

Comments
 (0)