Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 8 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
jobs:
create_release_pr:
name: Create Release PR
if: github.event_name == 'push' && !contains(github.event.head_commit.message, 'chore: release')
if: "github.event_name == 'push' && !contains(github.event.head_commit.message, 'chore: release')"
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand Down Expand Up @@ -73,7 +73,7 @@ jobs:

test:
name: Test Deno
if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'release')
if: "github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'release')"
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down Expand Up @@ -122,7 +122,7 @@ jobs:

release:
name: Create Release
if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'release')
if: "github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'release')"
runs-on: ubuntu-latest
needs: [test]
permissions:
Expand Down Expand Up @@ -209,12 +209,10 @@ jobs:
deno publish --allow-dirty

- name: Create GitHub Release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ steps.version.outputs.tag }}
release_name: Release ${{ steps.version.outputs.tag }}
name: Release ${{ steps.version.outputs.tag }}
body_path: release_notes.md
draft: false
prerelease: false
Expand All @@ -223,7 +221,7 @@ jobs:
name: Update Deno Land Registry
runs-on: ubuntu-latest
needs: release
if: needs.release.result == 'success'
if: "needs.release.result == 'success'"
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down Expand Up @@ -270,7 +268,7 @@ jobs:
name: Notify Release Success
runs-on: ubuntu-latest
needs: [release, deno-land]
if: always() && needs.release.result == 'success'
if: "always() && needs.release.result == 'success'"
steps:
- name: Release Summary
run: |
Expand All @@ -288,4 +286,4 @@ jobs:
fi
echo ""
echo "🚀 Installation:"
echo " deno add @lingodotdev/deno-sdk"
echo " deno add @lingodotdev/deno-sdk"