Skip to content

Commit

Permalink
Refactor: named workflow steps
Browse files Browse the repository at this point in the history
  • Loading branch information
Akalanka47000 committed Oct 15, 2023
1 parent 6a23a87 commit 2ec4567
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/actions/release/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ runs:
shell: bash

- name: Publish packages
run: melos publish --no-dry-run --yes
run: melos publish --no-published --no-dry-run --yes
shell: bash

- name: Update release info
Expand Down
18 changes: 13 additions & 5 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,23 @@ jobs:
name: Run Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/test
- name: Checkout repository 🛎️
uses: actions/checkout@v4

- name: Run Tests 🧪
uses: ./.github/actions/test
release:
name: Release packages
runs-on: ubuntu-latest
needs: unit-tests
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/release
- name: Checkout repository 🛎️
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Initiate release 📦
uses: ./.github/actions/release
with:
credentials: ${{ secrets.PUB_CREDENTIALS }}
options: "--prerelease --preid=blizzard"
options: "--prerelease --preid=blizzard --diff=origin/development...HEAD"
18 changes: 13 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,23 @@ jobs:
name: Run Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/unit-tests
- name: Checkout repository 🛎️
uses: actions/checkout@v4

- name: Run Tests 🧪
uses: ./.github/actions/unit-tests
release:
name: Release packages
runs-on: ubuntu-latest
needs: unit-tests
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/release
- name: Checkout repository 🛎️
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Initiate release 📦
uses: ./.github/actions/release
with:
credentials: ${{ secrets.PUB_CREDENTIALS }}
options: "--graduate"
options: "--graduate --diff=origin/main...HEAD"
7 changes: 5 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,8 @@ jobs:
name: Run Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/test
- name: Checkout repository 🛎️
uses: actions/checkout@v4

- name: Run Tests 🧪
uses: ./.github/actions/test

0 comments on commit 2ec4567

Please sign in to comment.