mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
ci: force skip-cache
This commit is contained in:
1 parent
09f3900eec
commit
1c128f85c5
1 file changed
+4
-10
@@ -31,16 +31,6 @@ jobs:
|
||||
phrase: 'skip-cache'
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
- uses: actions/cache@v3
|
||||
if: ${{ steps.skip-cache.outputs.skip }}
|
||||
with:
|
||||
path: |
|
||||
${{ steps.yarn-cache-dir-path.outputs.dir }}
|
||||
yarn.lock
|
||||
.cache
|
||||
**/tsconfig.tsbuildinfo
|
||||
key: cache-${{ github.ref }}-${{ github.sha }}
|
||||
- uses: actions/cache@v3
|
||||
if: ${{ !steps.skip-cache.outputs.skip }}
|
||||
with:
|
||||
path: |
|
||||
${{ steps.yarn-cache-dir-path.outputs.dir }}
|
||||
@@ -51,6 +41,10 @@ jobs:
|
||||
restore-keys: |
|
||||
cache-${{ github.ref }}-
|
||||
cache-
|
||||
- name: Clear Cache
|
||||
if: ${{ steps.skip-cache.outputs.skip }}
|
||||
run: |
|
||||
rm -rf node_modules yarn.lock **/tsconfig.tsbuildinfo
|
||||
- name: Config And Install
|
||||
run: |
|
||||
[[ ! -z "${{secrets.NPM_TOKEN}}" ]] && echo "npmAuthToken: ${{secrets.NPM_TOKEN}}" >> .yarnrc.yml
|
||||
|
||||
Reference in new issue
Block a user