action-demo/.gitea/workflows/cache-npx.yml
huanghs 8e37c423c1
Some checks failed
Gitea Actions Demo / build-docker (push) Has been cancelled
Gitea Actions Demo / setup (push) Failing after 1m3s
Gitea Actions Demo / test (push) Has been skipped
Gitea Actions Demo / build (push) Has been skipped
Cache Npx / task (push) Successful in 28s
更新 .gitea/workflows/cache-npx.yml
2024-07-30 14:52:55 +08:00

29 lines
592 B
YAML

name: Cache Npx
on: [push]
jobs:
task:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- run: npm config get cache
- run: echo ~
- run: pwd
- name: Get npm cache dir
id: npm-cache-dir
run: echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT}
- run: echo "${{ steps.npm-cache-dir.outputs.dir }}"
- name: Cache npx
uses: actions/cache@v3
with:
path: ${{ steps.npm-cache-dir.outputs.dir }}/_npx
key: ${{ runner.os }}-npx
- run: npx cloc .