diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 0f9f002..ac51922 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -7,18 +7,12 @@ jobs: publish: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - run: touch package-lock.json + - uses: actions/setup-node@v4 with: node-version: 16 - registry-url: 'https://registry.npmjs.org' - - uses: actions/cache@v3 - with: - path: ~/.npm - key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.OS }}-node- - ${{ runner.OS }}- + cache: 'npm' - run: npm install - run: npm test - run: npm run build diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1dba879..348b710 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -4,8 +4,6 @@ on: branches: - master push: - branches: - - master jobs: test: runs-on: ubuntu-latest @@ -13,16 +11,11 @@ jobs: matrix: version: [14, 16, 18] steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - run: touch package-lock.json + - uses: actions/setup-node@v4 with: node-version: ${{ matrix.version }} - - uses: actions/cache@v3 - with: - path: ~/.npm - key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.OS }}-node- - ${{ runner.OS }}- + cache: 'npm' - run: npm install - run: npm test