diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c71b8147..193d1ec5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,7 +20,7 @@ jobs: - name: Use Node.js uses: actions/setup-node@v4 with: - node-version: 16 + node-version: 20 - name: install run: npm ci diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index 253ff171..2a0a3d7f 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -14,7 +14,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: 16 + node-version: 20 - name: Test Build run: | npm ci @@ -27,7 +27,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: 16 + node-version: 20 - name: Build run: | npm ci diff --git a/.github/workflows/publish-npm.yml b/.github/workflows/publish-npm.yml index 3ac4b301..684e58ea 100644 --- a/.github/workflows/publish-npm.yml +++ b/.github/workflows/publish-npm.yml @@ -22,7 +22,7 @@ jobs: - name: Use Node.js uses: actions/setup-node@v4 with: - node-version: 16 + node-version: 20 - name: Test run: | npm ci @@ -35,7 +35,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: 16 + node-version: 20 registry-url: https://registry.npmjs.org/ - name: Setup and build run: | @@ -45,13 +45,13 @@ jobs: - name: Publish @next run: npm publish --tag next - if: "github.event.release.prerelease" + if: github.event.release.prerelease == true env: NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}} - name: Publish @latest run: npm publish --tag latest - if: "!github.event.release.prerelease" + if: github.event.release.prerelease == false env: NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}} @@ -106,7 +106,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: 16 + node-version: 20 registry-url: https://registry.npmjs.org/ - name: Build docs (latest/next) @@ -119,7 +119,7 @@ jobs: VERSION: ${{ needs.setup.outputs.version }} - name: Release to GitHub Pages (latest) - if: "!github.event.release.prerelease" + if: github.event.release.prerelease == false uses: peaceiris/actions-gh-pages@v4 with: github_token: ${{ secrets.GH_AUTH_TOKEN }} @@ -127,7 +127,7 @@ jobs: destination_dir: latest - name: Release to GitHub Pages (next) - if: "github.event.release.prerelease" + if: github.event.release.prerelease == true uses: peaceiris/actions-gh-pages@v4 with: github_token: ${{ secrets.GH_AUTH_TOKEN }}