Skip to content

Commit

Permalink
Disable prerelease and release tag pipelines until native addons is a…
Browse files Browse the repository at this point in the history
…vailable
  • Loading branch information
CMCDragonkai committed May 26, 2022
1 parent f9913c1 commit 4f15333
Showing 1 changed file with 0 additions and 90 deletions.
90 changes: 0 additions & 90 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -213,51 +213,6 @@ build:macos:
# Runs on tag pipeline where the tag is a prerelease or release version
- if: $CI_COMMIT_TAG =~ /^v[0-9]+\.[0-9]+\.[0-9]+(?:-.*[0-9]+)?$/

build:prerelease:
stage: build
needs:
- build:linux
- build:windows
- build:macos
# Don't interrupt publishing job
interruptible: false
before_script:
- echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ./.npmrc
script:
- echo 'Publishing library prerelease'
- >
nix-shell --run '
npm publish --tag prerelease --access public;
'
- >
for d in prebuilds/*; do
tar \
--create \
--verbose \
--file="prebuilds/$(basename $d).tar" \
--directory=prebuilds \
"$(basename $d)";
done
- >
nix-shell -I nixpkgs=./pkgs.nix --packages gitAndTools.gh --run '
gh release \
create "$CI_COMMIT_TAG" \
prebuilds/*.tar \
--title "${CI_COMMIT_TAG}-$(date -u +"%Y-%m-%dT%H:%M:%SZ")" \
--notes "" \
--prerelease \
--target staging \
--repo "$GH_PROJECT_PATH";
'
after_script:
- rm -f ./.npmrc
rules:
# Only runs on tag pipeline where the tag is a prerelease version
# This requires dependencies to also run on tag pipeline
# However version tag comes with a version commit
# Dependencies must not run on the version commit
- if: $CI_COMMIT_TAG =~ /^v[0-9]+\.[0-9]+\.[0-9]+-.*[0-9]+$/

integration:merge:
stage: integration
needs:
Expand Down Expand Up @@ -288,48 +243,3 @@ integration:merge:
- if: $CI_COMMIT_BRANCH == 'staging' && $CI_COMMIT_TITLE !~ /^[0-9]+\.[0-9]+\.[0-9]+(?:-.*[0-9]+)?$/
# Runs on tag pipeline where the tag is a prerelease or release version
- if: $CI_COMMIT_TAG =~ /^v[0-9]+\.[0-9]+\.[0-9]+(?:-.*[0-9]+)?$/

release:distribution:
stage: release
needs:
- build:linux
- build:windows
- build:macos
- integration:merge
# Don't interrupt publishing job
interruptible: false
before_script:
- echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ./.npmrc
script:
- echo 'Publishing library'
- >
nix-shell --run '
npm publish --access public;
'
- >
for d in prebuilds/*; do
tar \
--create \
--verbose \
--file="prebuilds/$(basename $d).tar" \
--directory=prebuilds \
"$(basename $d)";
done
- >
nix-shell -I nixpkgs=./pkgs.nix --packages gitAndTools.gh --run '
gh release \
create "$CI_COMMIT_TAG" \
prebuilds/*.tar \
--title "${CI_COMMIT_TAG}-$(date -u +"%Y-%m-%dT%H:%M:%SZ")" \
--notes "" \
--target master \
--repo "$GH_PROJECT_PATH";
'
after_script:
- rm -f ./.npmrc
rules:
# Only runs on tag pipeline where the tag is a release version
# This requires dependencies to also run on tag pipeline
# However version tag comes with a version commit
# Dependencies must not run on the version commit
- if: $CI_COMMIT_TAG =~ /^v[0-9]+\.[0-9]+\.[0-9]+$/

0 comments on commit 4f15333

Please sign in to comment.