Skip to content

Instantly share code, notes, and snippets.

@ChristopheCVB
Last active August 25, 2026 16:36
Show Gist options
  • Select an option

  • Save ChristopheCVB/63f05301328dc3a31e0d6ab8cfb65a55 to your computer and use it in GitHub Desktop.

Select an option

Save ChristopheCVB/63f05301328dc3a31e0d6ab8cfb65a55 to your computer and use it in GitHub Desktop.
Coolify + Release Please + Node
name: 'Test'
description: 'Run type checking, linting and build the project'
runs:
using: "composite"
steps:
- name: Install dependencies 📦️
shell: bash
run: pnpm install --frozen-lockfile
- name: Type check 🔍
shell: bash
run: pnpm typecheck
- name: Lint code ✨
shell: bash
run: pnpm lint
- name: Build 🔨
shell: bash
run: pnpm build
name: Deploy
on:
release:
types: [published]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Deploy
uses: christophecvb/coolify-deploy-action@v3.0.1
with:
token: ${{ secrets.COOLIFY_API_TOKEN }}
domain: ${{ vars.COOLIFY_DOMAIN }}
uuid: ${{ vars.COOLIFY_APP_UUID_BACK }},${{ vars.COOLIFY_APP_UUID_FRONT }}
force: false
waitForDeploy: true
timeout: 600
name: Pull Request
on:
pull_request:
branches: [ main ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
- name: Setup pnpm 📦️
uses: pnpm/action-setup@v4
- name: Use Node LTS ✨
uses: actions/setup-node@v4
with:
node-version: lts/*
registry-url: https://registry.npmjs.org
cache: pnpm
- uses: ./.github/actions/test
name: Release Please
on:
push:
branches: [ main ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: write
pull-requests: write
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: googleapis/release-please-action@v4
with:
token: ${{ secrets.RELEASE_PLEASE_TOKEN }}
release-type: node
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment