File tree Expand file tree Collapse file tree 1 file changed +17
-18
lines changed Expand file tree Collapse file tree 1 file changed +17
-18
lines changed Original file line number Diff line number Diff line change 11language : node_js
22node_js :
33 - 16
4+ - 17
45 - 18
56
7+ # run test for the above node versions for branches dev and main
68branches :
79 only :
810 - dev
911 - main
12+ # scripts to run for each test
1013script :
14+ - echo "Running tests against $(node -v) ..."
1115 - ' npm run lint'
1216 - ' npm run test'
1317 - ' npm run build'
18+ # specify a job to run
19+ jobs :
20+ include :
21+ - stage : npm release
22+ node_js : " 17"
23+ script : echo "Deploying to npm ..."
24+ deploy :
25+ on :
26+ branch : main
27+ tags : true
28+ provider : npm
29+ email : NPM_EMAIL_ADDRESS
30+ api_key : NPM_API_KEY
1431
15- deploy :
16- on :
17- branch : main
18- tags : true
19- provider : npm
20- email : NPM_EMAIL_ADDRESS
21- api_key : NPM_AUTH_TOKEN
2232
23- # optional speciying jobs to run
24- # jobs:
25- # include:
26- # - stage: npm release
27- # script: echo "Deploying to npm ..."
28- # deploy:
29- # on:
30- # branch: main
31- # provider: npm
32- # email: $NPM_EMAIL_ADDRESS
33- # api_key: $NPM_API_KEY
You can’t perform that action at this time.
0 commit comments