This commit is contained in:
parent
b367a52741
commit
c3194ce3a8
11
.drone.yml
11
.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
|
||||
|
Loading…
x
Reference in New Issue
Block a user