This commit is contained in:
parent
c3194ce3a8
commit
d081c4995b
@ -3,9 +3,8 @@ name: release
|
||||
|
||||
steps:
|
||||
- name: create-script-file
|
||||
image: node:14-alpine
|
||||
image: node:14
|
||||
commands:
|
||||
- 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
|
||||
@ -30,7 +29,7 @@ steps:
|
||||
- echo "}" >> custom-script.js
|
||||
- echo "" >> custom-script.js
|
||||
- name: run
|
||||
image: node:14-alpine
|
||||
image: node:14
|
||||
commands:
|
||||
- npm install axios # Install axios using npm
|
||||
- node custom-script.js # Run the script
|
||||
|
Loading…
x
Reference in New Issue
Block a user