From c3194ce3a857ece948866eee975bf4b4300ff997 Mon Sep 17 00:00:00 2001 From: Sthope Date: Mon, 28 Aug 2023 18:59:39 +0200 Subject: [PATCH] Update .drone.yml --- .drone.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index 06e7dfa..bdfd2a3 100644 --- a/.drone.yml +++ b/.drone.yml @@ -3,9 +3,9 @@ name: release steps: - name: create-script-file - image: alpine:3.13 + image: node:14-alpine commands: - - apk add --no-cache nodejs npm # Install Node.js and npm in Alpine Linux + - apk add --no-cache npm # Install npm in Alpine Linux - echo "const axios = require('axios');" > custom-script.js - echo "" >> custom-script.js - echo "function getLatestReleaseTag() {" >> custom-script.js @@ -29,5 +29,8 @@ steps: - echo " console.log('The new release is older than the one I have.');" >> custom-script.js - echo "}" >> custom-script.js - echo "" >> custom-script.js - - npm install axios - - node custom-script.js + - name: run + image: node:14-alpine + commands: + - npm install axios # Install axios using npm + - node custom-script.js # Run the script