This repository has been archived by the owner on Oct 16, 2024. It is now read-only.
refactor: run on bun #4425
Workflow file for this run
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: CI | |
on: | |
pull_request: | |
push: | |
branches: | |
- alpha | |
- beta | |
- master | |
- renovate/** | |
jobs: | |
prepare_jobs: | |
name: 'Prepare: job optimization' | |
runs-on: ubuntu-latest | |
outputs: | |
pr_found: ${{ steps.pr.outputs.pr_found }} | |
steps: | |
- name: Get current PR | |
id: pr | |
uses: 8BitJonny/[email protected] | |
with: | |
filterOutClosed: true | |
sha: ${{ github.event.pull_request.head.sha }} | |
release_semantic_dry: | |
needs: prepare_jobs | |
name: Release (semantic, dry) | |
uses: dargmuesli/github-actions/.github/workflows/[email protected] | |
if: needs.prepare_jobs.outputs.pr_found == 'false' || github.event_name == 'pull_request' | |
permissions: | |
contents: write | |
secrets: | |
PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | |
with: | |
DRY_RUN: true | |
build: | |
needs: release_semantic_dry | |
name: Build | |
uses: dargmuesli/github-actions/.github/workflows/[email protected] | |
if: needs.prepare_jobs.outputs.pr_found == 'false' || github.event_name == 'pull_request' | |
permissions: | |
packages: write | |
with: | |
TAG: ${{ needs.release_semantic_dry.outputs.new_release_version }} | |
release-semantic: | |
needs: build | |
name: Semantic Release | |
uses: dargmuesli/github-actions/.github/workflows/[email protected] | |
permissions: | |
contents: write | |
secrets: | |
PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} |