diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1b130234a1..7ee699c31d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,5 +1,5 @@ --- -name: "Kitsu CI" +name: 'Kitsu CI' on: pull_request: @@ -15,18 +15,20 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node: [ 18, 20 ] + node: [18, 20] steps: - uses: actions/checkout@v4 - name: Setup node uses: actions/setup-node@v3 with: node-version: ${{ matrix.node }} - cache: "npm" + cache: 'npm' - name: Run tests env: - NODE_OPTIONS: "--max_old_space_size=8192" + NODE_OPTIONS: '--max_old_space_size=8192' run: | + echo "Node.js $(node -v)" + echo "npm v$(npm -v)" npm ci npm run lint -- --quiet npm run test:unit diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bbe9eca949..682907d1fc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,5 +1,5 @@ --- -name: "Kitsu release" +name: 'Kitsu release' on: push: @@ -13,11 +13,15 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Build release env: - NODE_OPTIONS: "--max_old_space_size=8192" + NODE_OPTIONS: '--max_old_space_size=8192' run: | + echo "Node.js $(node -v)" + echo "npm v$(npm -v)" npm ci npm run build GIT_COMMIT="$(git rev-parse HEAD)" @@ -35,7 +39,7 @@ jobs: uses: ncipollo/release-action@v1 id: create_release with: - artifacts: "kitsu-*.tgz,kitsu-*.SHA512" + artifacts: 'kitsu-*.tgz,kitsu-*.SHA512' token: ${{ secrets.GITHUB_TOKEN }} - name: Update "build" branch if: startsWith(github.ref, 'refs/tags')