Skip to content

Commit caf0222

Browse files
committed
debug6
1 parent eb20050 commit caf0222

File tree

2 files changed

+8
-12
lines changed

2 files changed

+8
-12
lines changed

serverless-pipeline.yaml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ steps:
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

src/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
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",

0 commit comments

Comments
 (0)