Skip to content

Commit

Permalink
Merge pull request #5 from patrickkabwe/fix/release-workflow
Browse files Browse the repository at this point in the history
Update release.yml
  • Loading branch information
patrickkabwe authored Dec 1, 2024
2 parents 5134c48 + 79ee017 commit 9f7e930
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
21 changes: 18 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ on:
- main

permissions:
contents: write
pages: write
contents: write
pull-requests: write

concurrency: ${{ github.workflow }}-${{ github.ref }}

Expand All @@ -17,7 +17,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Node.js 20.x
uses: oven-sh/setup-bun@v2
Expand All @@ -30,6 +32,14 @@ jobs:
- name: Restore ccache
uses: hendrikmuhs/ccache-action@v1.2

- name: Cache Dependencies
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lockb') }}
restore-keys: |
${{ runner.os }}-bun-
- name: Get Version
id: get-version
run: |
Expand All @@ -46,3 +56,8 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Release Status
if: steps.changesets.outputs.published == 'true'
run: |
echo "🎉 Published version ${{ steps.get-version.outputs.version }}"
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,5 @@ android/keystores/debug.keystore
lib/

# TypeScript
tsconfig.tsbuildinfo
tsconfig.tsbuildinfo
.ccache

0 comments on commit 9f7e930

Please sign in to comment.