Skip to content

Commit e565baf

Browse files
committed
debug7
1 parent fe09aad commit e565baf

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

serverless-pipeline.yaml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,20 @@ steps:
1111
inputs:
1212
# key: ${{hashFile('./src/package.json')}}
1313
key: 'xxxxxxx'
14-
path: /tmp/my-cache
14+
path: ./src/node_modules
1515
region: cn-shenzhen
1616
ossConfig:
1717
bucket: wss-test-shenzhen
1818
internal: false
1919
credentials:
2020
accessKeySecret: ${{cloudSecrets.AccessKeySecret}}
21-
accessKeyID: ${{cloudSecrets.AccessKeyID}}
22-
- run: echo {{ steps['my-cache'].outputs['cache-hit'] == 'true' }}
23-
- run: env && npm install --production
24-
env:
25-
PATH: /tmp/my-cache:/opt:/opt/nodejs16/bin:/usr/local/bin/apache-maven/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/ruby/bin
26-
NODE_PATH: /tmp/my-cache
21+
accessKeyID: ${{cloudSecrets.AccessKeyIdanD}}
22+
- run: echo ${{ steps['my-cache'].outputs['cache-hit'] != 'true' }}
23+
- run: ls -al
24+
working-directory: ./src
25+
- run: npm install --production
26+
if: ${{ steps['my-cache'].outputs['cache-hit'] != 'true' }}
27+
working-directory: ./src
2728

2829
# - run: npm install @serverless-devs/s@beta -g
2930
# - run: ls -al

0 commit comments

Comments
 (0)