diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 6eea01f3..217864b9 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -10,8 +10,8 @@ jobs: eslint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: { node-version: 22 } - run: npm ci - run: npx eslint . @@ -19,8 +19,8 @@ jobs: examples: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: { node-version: 22 } - run: npm ci - run: npm run prepack @@ -29,12 +29,12 @@ jobs: pack: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: { node-version: 22 } - run: npm ci - run: npm pack - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: package path: '*.tgz' @@ -42,8 +42,8 @@ jobs: prettier: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: { node-version: 22 } - run: npm ci - run: npx prettier --check . @@ -51,8 +51,8 @@ jobs: tsc: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: { node-version: 22 } - run: npm ci - run: npx tsc @@ -62,11 +62,11 @@ jobs: needs: [eslint, examples, pack, prettier, tsc] if: startsWith(github.ref, 'refs/tags/') steps: - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: node-version: 22 registry-url: https://registry.npmjs.org - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: { name: package } - run: npm publish *.tgz env: