diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e5b3210cfd..6293471a17 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -26,7 +26,7 @@ jobs: build: runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 if: env.HAS_GITHUBPAGESDEPLOYTOKEN == 'true' with: # Required for beachball changelog detection @@ -35,19 +35,19 @@ jobs: # Cannot rely on GITHUB_TOKEN with workflow contents permission # See: https://github.com/orgs/community/discussions/40971 token: ${{ secrets.GITHUBPAGESDEPLOYTOKEN }} - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 if: env.HAS_GITHUBPAGESDEPLOYTOKEN == 'false' with: # Required for beachball changelog detection fetch-depth: 0 # Install dependencies - - uses: actions/setup-dotnet@v3 + - uses: actions/setup-dotnet@v4 with: global-json-file: packages/nimble-blazor/global.json - run: dotnet --info working-directory: packages/nimble-blazor/ - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: node-version: '20' registry-url: 'https://registry.npmjs.org' @@ -71,7 +71,7 @@ jobs: # Pack - run: npm run pack - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: packages path: | @@ -83,14 +83,14 @@ jobs: # https://github.com/actions/upload-pages-artifact/issues/45 - name: Pages file permission workaround run: chmod -c -R +rX packages/site/dist - - uses: actions/upload-pages-artifact@v1 + - uses: actions/upload-pages-artifact@v3 with: path: 'packages/site/dist' # Publish to Chromatic (from any push) - name: Publish to Chromatic if: env.HAS_CHROMATIC_PROJECT_TOKEN == 'true' && github.event_name == 'push' - uses: chromaui/action@v1 + uses: chromaui/action@v11 with: projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} onlyChanged: "!startsWith(github.ref, 'refs/heads/main')" # Use TurboSnap for PR builds @@ -154,4 +154,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v1 + uses: actions/deploy-pages@v4