diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index ac1be46..eaa2b41 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -11,15 +11,23 @@ jobs: node-version: [18.x, 20.x] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - - name: npm install, build, lint and test + cache: "npm" + - name: Install dependencies run: | npm ci - npm run lint - npm run build env: CI: true + - name: Lint + run: | + npm run lint + - name: Build + run: | + npm run build + - name: Build docs + run: | + npm run build:docs diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index a5a5e23..a177b8b 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -8,10 +8,11 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 20 + cache: "npm" - run: npm ci - run: npm run lint - run: npm run build @@ -20,11 +21,12 @@ jobs: needs: build runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 20 registry-url: https://registry.npmjs.org/ + cache: "npm" - run: npm ci - run: npm run build - run: npm publish @@ -51,12 +53,13 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 20 + cache: "npm" - name: Install Deps run: npm ci - name: Build Docs