From c1329ee0ea48c7006a5a9173aedebce6d042695f Mon Sep 17 00:00:00 2001 From: EndMove Date: Wed, 28 Jun 2023 13:26:08 +0200 Subject: [PATCH] feat(ci) Setting up drone ci + fix package [test] (#1) Reviewed-on: https://git.endmove.eu/IO-ProjectsOfficial/eslint-config/pulls/1 Co-authored-by: EndMove Co-committed-by: EndMove --- .drone.yml | 35 +++++++++++++++++++++++++++++------ 1 file changed, 29 insertions(+), 6 deletions(-) diff --git a/.drone.yml b/.drone.yml index 118acfb..5f5c48a 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,7 +1,7 @@ --- kind: pipeline type: docker -name: npm-publish-snapshot +name: snapshot trigger: event: @@ -29,7 +29,27 @@ steps: --- kind: pipeline type: docker -name: npm-publish-release +name: checkup + +trigger: + event: + - push + - promote + branch: + - master + +steps: + - name: package-checkup + image: node:18 + commands: + - export DATA=$(node -p "require('./package.json')") || echo "No Data Found" + - echo "Package Data :" + - echo $DATA + +--- +kind: pipeline +type: docker +name: release trigger: event: @@ -37,8 +57,11 @@ trigger: branch: - master - environement: - CHANGE: ${CHANGE} +depends_on: + - checkup + +environment: + CHANGE: ${CHANGE} steps: - name: publish-release @@ -60,10 +83,10 @@ steps: image: plugins/gitea-release settings: api_key: - from_secret: gitea_api_key + from_secret: gitea_token base_url: https://git.endmove.eu title: Release ${VERSION} - notes: 'See the commits diff for more informations' + notes: "See the commits diff for more information's" checksum: - md5 - sha1