Update GitHub Actions to use latest versions by Yukaii · Pull Request #1895 · hackmdio/codimd

Expand Up @@ -13,22 +13,22 @@ jobs: node-version: [14.x, 16.x]
steps: - uses: actions/checkout@v2 - uses: actions/checkout@v4
# from https://stackoverflow.com/a/69649733 - name: Reconfigure git to use HTTP authentication run: > git config --global url."https://github.com/".insteadOf ssh://git@github.com/
- uses: actions/cache@v2 - uses: actions/cache@v4 with: path: ~/.npm key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} restore-keys: | ${{ runner.os }}-node-
- uses: actions/setup-node@v2 - uses: actions/setup-node@v4 name: Use Node.js ${{ matrix.node-version }} with: node-version: ${{ matrix.node-version }} Expand All @@ -43,8 +43,8 @@ jobs: if: github.ref == 'refs/heads/master' || github.event.pull_request
steps: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 - uses: actions/checkout@v4 - uses: actions/setup-node@v4 name: Use Node.js 14 with: node-version: 14 Expand Down