Skip to content

Commit

Permalink
chore: Update CI workflow to delete node_modules and verify ts-codege…
Browse files Browse the repository at this point in the history
…nerator version
  • Loading branch information
ozhanefemeral committed Jul 25, 2024
1 parent 76eee82 commit 9ca98b5
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,27 +15,32 @@ jobs:
uses: oven-sh/setup-bun@v1
with:
bun-version: latest

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18.x

- name: Clear bun cache
run: bun pm cache clean

- name: Patch package.json
- name: Clear Bun cache
run: |
sed -i 's/"@ozhanefe\/ts-codegenerator": "workspace:*"/"@ozhanefe\/ts-codegenerator": "1.8.0"/' package.json
bun pm cache clean
rm -rf node_modules
- name: Install dependencies
run: bun install

- name: Verify ts-codegenerator version
run: |
echo "Installed ts-codegenerator version:"
cat node_modules/@ozhanefe/ts-codegenerator/package.json | grep version
echo "Is workspace version? (should be empty)"
find node_modules/@ozhanefe -name "ts-generator" | grep workspace
- name: Lint
run: bun run lint

- name: Build
run: bun run build

- name: Test
run: bun run test
run: bun run test

0 comments on commit 9ca98b5

Please sign in to comment.