Skip to content

Commit 11347a1

Browse files
ci: remove npm publish pipelines from drone (moved to GHA)
1 parent 3519097 commit 11347a1

File tree

1 file changed

+0
-233
lines changed

1 file changed

+0
-233
lines changed

.drone.yml

Lines changed: 0 additions & 233 deletions
Original file line numberDiff line numberDiff line change
@@ -901,136 +901,6 @@ steps:
901901
ssh_key:
902902
from_secret: ssh-key-team-product-github-push
903903

904-
---
905-
kind: pipeline
906-
type: docker
907-
name: sdk publish npm
908-
909-
trigger:
910-
event:
911-
- promote
912-
target:
913-
# publish the package @iexec/dataprotector on npm with the tag nightly
914-
- sdk-publish-nightly
915-
# publish the package @iexec/dataprotector on npm with the tag beta (require sdk version to be [version]-beta.[b])
916-
- sdk-publish-beta
917-
# publish the package @iexec/dataprotector on npm with the tag latest
918-
- sdk-publish-latest
919-
branch:
920-
- main
921-
922-
steps:
923-
- name: install
924-
image: node:18.19
925-
pull: always
926-
commands:
927-
- node -v
928-
- npm -v
929-
- cd packages/sdk
930-
- npm ci
931-
- npm run codegen
932-
933-
- name: build
934-
image: node:18.19
935-
commands:
936-
- cd packages/sdk
937-
- npm run build
938-
depends_on:
939-
- install
940-
941-
- name: check-beta-version
942-
image: node:18.19
943-
commands:
944-
- cd packages/sdk
945-
- npm pkg get version | grep "-beta."
946-
when:
947-
target:
948-
- sdk-publish-beta
949-
950-
- name: set-version-nightly
951-
image: node:18.19
952-
commands:
953-
- cd packages/sdk
954-
- eval npm pkg set version="$(npm pkg get version)-nightly-$DRONE_COMMIT"
955-
when:
956-
target:
957-
- sdk-publish-nightly
958-
depends_on:
959-
- install
960-
961-
- name: npm publish nightly
962-
image: plugins/npm
963-
settings:
964-
username:
965-
from_secret: npm_username
966-
token:
967-
from_secret: npm_token
968-
tag: nightly
969-
access: public
970-
folder: packages/sdk
971-
depends_on:
972-
- build
973-
- set-version-nightly
974-
when:
975-
target:
976-
- sdk-publish-nightly
977-
978-
- name: npm-publish-beta
979-
image: plugins/npm
980-
settings:
981-
username:
982-
from_secret: npm_username
983-
token:
984-
from_secret: npm_token
985-
tag: beta
986-
access: public
987-
folder: packages/sdk
988-
depends_on:
989-
- build
990-
- check-beta-version
991-
when:
992-
target:
993-
- sdk-publish-beta
994-
995-
- name: npm-publish-latest
996-
image: plugins/npm
997-
settings:
998-
username:
999-
from_secret: npm_username
1000-
token:
1001-
from_secret: npm_token
1002-
tag: latest
1003-
access: public
1004-
folder: packages/sdk
1005-
depends_on:
1006-
- build
1007-
when:
1008-
target:
1009-
- sdk-publish-latest
1010-
1011-
- name: npm-authenticate
1012-
image: robertstettner/drone-npm-auth
1013-
settings:
1014-
username:
1015-
from_secret: npm_username
1016-
token:
1017-
from_secret: npm_token
1018-
when:
1019-
target:
1020-
- sdk-publish-beta
1021-
depends_on:
1022-
- npm-publish-beta
1023-
1024-
- name: npm-retag-latest
1025-
image: node:18.19
1026-
commands:
1027-
- npm dist-tag add @iexec/dataprotector@$(cd packages/sdk/ && npm pkg get version | sed 's/"//g') latest
1028-
when:
1029-
target:
1030-
- sdk-publish-beta
1031-
depends_on:
1032-
- npm-authenticate
1033-
1034904
---
1035905
kind: pipeline
1036906
type: docker
@@ -1086,106 +956,3 @@ steps:
1086956
- PACKAGE_VERSION
1087957
commands:
1088958
- if [ -n "$PACKAGE_VERSION" ]; then npm deprecate @iexec/dataprotector@$PACKAGE_VERSION ""; else echo "PACKAGE_VERSION is not set"; fi
1089-
1090-
---
1091-
kind: pipeline
1092-
type: docker
1093-
name: dataprotector-deserializer publish npm
1094-
1095-
trigger:
1096-
event:
1097-
- promote
1098-
target:
1099-
# publish the package @iexec/dataprotector-deserializer on npm with the tag nightly
1100-
- dataprotector-deserializer-publish-nightly
1101-
# publish the package @iexec/dataprotector-deserializer on npm with the tag latest
1102-
- dataprotector-deserializer-publish-latest
1103-
branch:
1104-
- main
1105-
1106-
steps:
1107-
- name: build test dependency dataprotector-sdk
1108-
image: node:18
1109-
pull: always
1110-
commands:
1111-
- cd packages/sdk
1112-
- npm ci
1113-
- npm run codegen
1114-
- npm run build
1115-
1116-
- name: install
1117-
image: node:18
1118-
pull: always
1119-
commands:
1120-
- cd packages/dataprotector-deserializer
1121-
- node -v
1122-
- npm -v
1123-
- npm ci
1124-
- npm run test:prepare
1125-
1126-
- name: format
1127-
image: node:18
1128-
commands:
1129-
- cd packages/dataprotector-deserializer
1130-
- npm run check-format
1131-
1132-
- name: lint
1133-
image: node:18
1134-
commands:
1135-
- cd packages/dataprotector-deserializer
1136-
- npm run lint
1137-
1138-
- name: check-types
1139-
image: node:18
1140-
commands:
1141-
- cd packages/dataprotector-deserializer
1142-
- npm run check-types
1143-
1144-
- name: test
1145-
image: node:18
1146-
commands:
1147-
- cd packages/dataprotector-deserializer
1148-
- npm run test
1149-
1150-
- name: build
1151-
image: node:18
1152-
commands:
1153-
- cd packages/dataprotector-deserializer
1154-
- npm run build
1155-
1156-
- name: set nightly version
1157-
image: node:18.19
1158-
commands:
1159-
- cd packages/dataprotector-deserializer
1160-
- eval npm pkg set version="$(npm pkg get version)-nightly-$DRONE_COMMIT"
1161-
when:
1162-
target:
1163-
- dataprotector-deserializer-publish-nightly
1164-
1165-
- name: npm publish nightly
1166-
image: plugins/npm
1167-
settings:
1168-
username:
1169-
from_secret: npm_username
1170-
token:
1171-
from_secret: npm_token_dataprotector_deserializer
1172-
tag: nightly
1173-
access: public
1174-
folder: packages/dataprotector-deserializer
1175-
when:
1176-
target:
1177-
- dataprotector-deserializer-publish-nightly
1178-
1179-
- name: npm publish latest
1180-
image: plugins/npm
1181-
settings:
1182-
username:
1183-
from_secret: npm_username
1184-
token:
1185-
from_secret: npm_token_dataprotector_deserializer
1186-
tag: latest
1187-
access: public
1188-
folder: packages/dataprotector-deserializer
1189-
when:
1190-
target:
1191-
- dataprotector-deserializer-publish-latest

0 commit comments

Comments
 (0)