Build and update Prisma packages to the latest #26174
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and update Prisma packages to the latest | |
on: | |
schedule: | |
# Run every hour | |
- cron: '0 * * * *' | |
workflow_dispatch: | |
jobs: | |
update: | |
name: Build and publish packages | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- uses: cachix/install-nix-action@v14 | |
with: | |
install_url: https://releases.nixos.org/nix/nix-2.11.1/install | |
extra_nix_config: | | |
experimental-features = nix-command flakes | |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} | |
- name: Update packages | |
run: | | |
nix run .#updatePackages | |
- name: Build language server | |
run: | | |
nix build .#"@prisma/language-server" | |
nix build .#"@prisma/language-server-dev" | |
- uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: Packages update | |
commit_user_name: prisma-bot | |
commit_user_email: [email protected] | |
commit_author: prisma-bot <[email protected]> |