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