Skip to content

Commit

Permalink
chore: stop caching dist folder between steps
Browse files Browse the repository at this point in the history
It‘s only causing headaches.
  • Loading branch information
aleclarson committed Jun 30, 2024
1 parent 754e6bd commit 1f8afcc
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions .github/workflows/publish-beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,8 @@ jobs:
- run: pnpm install
- name: Lint
run: pnpm lint
- name: Prepare Build
# For some reason the --clean flag of tsup isn't clearing out the
# "dist/tmp" folder created when `tsc` is executed by the lint script,
# so let's remove "dist" manually before running the build.
run: rm -rf dist && pnpm build
- uses: actions/cache@v3
with:
path: dist
key: dist
- name: Check Build
run: pnpm build

publish-beta:
name: Publish Beta
Expand All @@ -65,10 +58,7 @@ jobs:
node-version: '22.x'
cache: pnpm
- run: pnpm install
- uses: actions/cache@v3
with:
path: dist
key: dist
- run: pnpm build

- name: Retrieve Stable Version
id: get-stable-version
Expand Down

0 comments on commit 1f8afcc

Please sign in to comment.