Merge pull request #235 from dargmuesli/renovate/jiti-2.x #4458
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: contains(fromJSON('["beta", "alpha"]'), github.ref_name) || needs.prepare_jobs.outputs.pr_found == 'false' || github.event_name == 'pull_request' | |
permissions: | |
contents: write | |
secrets: | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | |
with: | |
APT_PACKAGES: mkcert | |
DRY_RUN: true | |
build: | |
name: Build | |
uses: dargmuesli/github-actions/.github/workflows/[email protected] | |
needs: release_semantic_dry | |
permissions: | |
packages: write | |
with: | |
PUSH: false | |
TAG: ${{ needs.release_semantic_dry.outputs.new_release_version }} | |
release_semantic: | |
needs: build | |
name: Release (semantic) | |
uses: dargmuesli/github-actions/.github/workflows/[email protected] | |
permissions: | |
contents: write | |
secrets: | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | |
with: | |
APT_PACKAGES: mkcert |