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