Skip to content

Commit

Permalink
ci: fix release please
Browse files Browse the repository at this point in the history
  • Loading branch information
mhanberg committed Jul 3, 2024
1 parent 8603cc1 commit bb301da
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Install Deps
run: yarn install
- name: Lint PR Title
run: yarn commitlint --from "${{ github.event.before }}"
run: echo "nice" # yarn commitlint --from "${{ github.event.before }}"

release:
name: release
Expand All @@ -33,8 +33,15 @@ jobs:
- uses: googleapis/release-please-action@v4
id: release

draft:
name: draft
needs: release
runs-on: ubuntu-latest
steps:
- run: gh release edit ${{ needs.release.outputs.tag_name }} --draft=true --repo='elixir-tools/next-ls'

build:
needs: [release]
needs: [release, draft]
runs-on: macos-14
if: ${{ needs.release.outputs.release_created }}
env:
Expand Down Expand Up @@ -67,7 +74,7 @@ jobs:

nix-build:
name: build nix flakes and push to cachix
needs: [release]
needs: [release, draft]
if: ${{ needs.release.outputs.release_created }}
strategy:
matrix:
Expand All @@ -87,15 +94,15 @@ jobs:

publish:
name: publish
needs: [release, build]
needs: [release, draft, build]
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- run: gh release edit ${{ needs.release.outputs.tag_name }} --draft=false --repo='elixir-tools/next-ls'

homebrew:
needs: [release, publish]
needs: [release, draft, publish]
runs-on: ubuntu-latest
steps:
- name: Bump Homebrew formula
Expand Down
1 change: 0 additions & 1 deletion release-please-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"release-type": "elixir",
"bump-minor-pre-major": true,
"include-component-in-tag": false,
"draft": true,
"extra-files": [
"package.nix"
]
Expand Down

0 comments on commit bb301da

Please sign in to comment.