Update .drone.yml
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Sthope 2023-08-28 18:59:39 +02:00
parent b367a52741
commit c3194ce3a8

View File

@ -3,9 +3,9 @@ name: release
steps: steps:
- name: create-script-file - name: create-script-file
image: alpine:3.13 image: node:14-alpine
commands: 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 "const axios = require('axios');" > custom-script.js
- echo "" >> custom-script.js - echo "" >> custom-script.js
- echo "function getLatestReleaseTag() {" >> 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 " console.log('The new release is older than the one I have.');" >> custom-script.js
- echo "}" >> custom-script.js - echo "}" >> custom-script.js
- echo "" >> custom-script.js - echo "" >> custom-script.js
- npm install axios - name: run
- node custom-script.js image: node:14-alpine
commands:
- npm install axios # Install axios using npm
- node custom-script.js # Run the script