action-demo/.gitea/workflows/cache-npx.yml
huanghs a3c1d49f5a
Some checks failed
Gitea Actions Demo / build-docker (push) Has been cancelled
Gitea Actions Demo / test (push) Has been cancelled
Gitea Actions Demo / build (push) Has been cancelled
Gitea Actions Demo / setup (push) Has been cancelled
Cache Npx / task (push) Successful in 32s
更新 .gitea/workflows/cache-npx.yml
2024-10-10 10:48:30 +08:00

28 lines
587 B
YAML

name: Cache Npx
on: [push]
env:
DOCKER_REGISTRY: git.zgfxrc.cn
DOCKER_USERNAME: huanghs
jobs:
task:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- 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-2
- run: npx cloc .