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