action-demo/.gitea/workflows/cache-npx.yml
huanghs e3b71682dd
Some checks failed
Gitea Actions Demo / build-docker (push) Has been cancelled
Gitea Actions Demo / setup (push) Failing after 34s
Gitea Actions Demo / test (push) Has been skipped
Gitea Actions Demo / build (push) Has been skipped
Cache Npx / task (push) Successful in 24s
更新 .gitea/workflows/cache-npx.yml
2024-10-10 10:54:14 +08:00

28 lines
583 B
YAML

name: Cache Npx
on: [push]
env:
DOCKER_REGISTRY: git.zgfxrc.cn
DOCKER_USERNAME: huanghs
jobs:
task:
runs-on: xxpro-hhs
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 .