File tree Expand file tree Collapse file tree 2 files changed +8
-12
lines changed
Expand file tree Collapse file tree 2 files changed +8
-12
lines changed Original file line number Diff line number Diff line change 99 - plugin : " @serverless-cd/cache"
1010 id : my-cache
1111 inputs :
12- key : ' test-1 '
13- path : ./src
12+ key : ${{hashFile('./src/package.json')}}
13+ path : /tmp/my-cache
1414 region : cn-shenzhen
1515 ossConfig :
1616 bucket : wss-test-shenzhen
@@ -19,15 +19,11 @@ steps:
1919 accessKeySecret : ${{cloudSecrets.AccessKeySecret}}
2020 accessKeyID : ${{cloudSecrets.AccessKeyID}}
2121 - run : pwd
22- - run : ls -al
23- - run : ls -al ./src
24- - run : echo {{ steps['my-cache'].outputs['cache-hit'] != 'true' }}
25- - if : {{ steps.my-cache.outputs.cache-hit != 'true' }}
26- run : env
27- - run : python -V
28- # - run: mvn -v
29- - run : node -v
30- - run : npm -v
22+ - run : echo {{ steps['my-cache'].outputs['cache-hit'] == 'true' }}
23+ - run : npm install --production
24+ env :
25+ PATH : /tmp/my-cache:${{env.PATH}}
26+ NODE_PATH : /tmp/my-cache:${{env.NODE_PATH}}
3127
3228 # - run: npm install @serverless-devs/s@beta -g
3329 # - run: ls -al
Original file line number Diff line number Diff line change 1414 "license" : " ISC" ,
1515 "dependencies" : {
1616 "npm-registry-fetch" : " ^14.0.2" ,
17+ "@alicloud/console-components" : " ^1.5.10" ,
1718 "urlencode" : " ^1.1.0"
1819 },
1920 "devDependencies" : {
20- "@alicloud/console-components" : " ^1.5.10" ,
2121 "@testing-library/jest-dom" : " ^5.15.1" ,
2222 "@testing-library/react" : " ^13.0.0" ,
2323 "@types/jest" : " ^27.0.3" ,
You can’t perform that action at this time.
0 commit comments