Skip to content

Commit

Permalink
feat(ci): add publish-commit workflow
Browse files Browse the repository at this point in the history
chore: wip
  • Loading branch information
chrisbbreuer committed Jan 28, 2025
1 parent 28e0498 commit d084ecf
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 4 deletions.
26 changes: 23 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
uses: actions/cache@v4
with:
path: node_modules
key: node-modules-${{ hashFiles('**/bun.lockb') }}
key: node-modules-${{ hashFiles('**/bun.lock') }}
restore-keys: |
node-modules-
Expand All @@ -50,7 +50,7 @@ jobs:
uses: actions/cache@v4
with:
path: node_modules
key: node-modules-${{ hashFiles('**/bun.lockb') }}
key: node-modules-${{ hashFiles('**/bun.lock') }}
restore-keys: |
node-modules-
Expand All @@ -73,7 +73,7 @@ jobs:
uses: actions/cache@v4
with:
path: node_modules
key: node-modules-${{ hashFiles('**/bun.lockb') }}
key: node-modules-${{ hashFiles('**/bun.lock') }}
restore-keys: |
node-modules-
Expand All @@ -82,3 +82,23 @@ jobs:

- name: Unit Test
run: bun test

publish-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Bun
uses: oven-sh/setup-bun@v2
- name: Use cached node_modules
uses: actions/cache@v4
with:
path: node_modules
key: node-modules-${{ hashFiles('**/bun.lock') }}
restore-keys: |
node-modules-
- name: Install Dependencies
run: bun install
- name: Build
run: bun run build
- name: Publish Commit
run: bunx pkg-pr-new publish
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
uses: actions/cache@v4
with:
path: node_modules
key: node-modules-${{ hashFiles('**/bun.lockb') }}
key: node-modules-${{ hashFiles('**/bun.lock') }}
restore-keys: |
node-modules-
Expand Down

0 comments on commit d084ecf

Please sign in to comment.