Skip to content

Commit

Permalink
chore: update ci (#180)
Browse files Browse the repository at this point in the history
  • Loading branch information
huntabyte authored Oct 6, 2024
1 parent a96c744 commit 9049568
Show file tree
Hide file tree
Showing 8 changed files with 5,120 additions and 4,192 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/build-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,10 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 8

- uses: actions/setup-node@v4
with:
node-version: 18
cache: pnpm
node-version: 20
cache: pnpm

- name: Install dependencies
run: pnpm install
Expand Down
33 changes: 10 additions & 23 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,14 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 8

- uses: actions/setup-node@v4
with:
node-version: 18
cache: pnpm
node-version: 20
cache: pnpm

- name: Install dependencies
run: pnpm install

- name: Build
run: pnpm build

- name: Sync
run: pnpm sync

- name: Run svelte-check
run: pnpm check

Expand All @@ -43,34 +34,30 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 8

- uses: actions/setup-node@v4
with:
node-version: 18
cache: pnpm
node-version: 20
cache: pnpm

- name: Install dependencies
run: pnpm install

- run: pnpm lint
- name: Lint
run: pnpm lint

Test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 8

- uses: actions/setup-node@v4
with:
node-version: 18
cache: pnpm
node-version: 20
cache: pnpm

- name: Install dependencies
run: pnpm install

- run: pnpm test
- name: Test
run: pnpm test
7 changes: 2 additions & 5 deletions .github/workflows/deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,10 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 8

- uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
node-version: 20
cache: pnpm

- name: Install dependencies
run: pnpm install
Expand Down
13 changes: 5 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,13 @@ jobs:
fetch-depth: 0

- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
version: 8
node-version: 20
cache: pnpm

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 18
cache: pnpm

- run: pnpm install
- name: Install dependencies
run: pnpm install

- name: Create Release Pull Request or Publish to npm
id: changesets
Expand Down
9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,18 @@
"ci:publish": "pnpm build:packages && changeset publish",
"lint": "pnpm -r lint",
"format": "pnpm -r format",
"check": "pnpm -r check",
"check": "pnpm build:packages && pnpm -r check",
"sync": "pnpm -r sync",
"postinstall": "pnpm -r sync"
},
"license": "MIT",
"devDependencies": {
"@changesets/cli": "^2.26.2",
"@svitejs/changesets-changelog-github-compact": "^1.1.0"
}
},
"engines": {
"pnpm": ">=8.7.0",
"node": ">=18"
},
"packageManager": "[email protected]"
}
8 changes: 7 additions & 1 deletion packages/formsnap/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,11 @@
"type": "module",
"dependencies": {
"nanoid": "^5.0.5"
}
},
"engines": {
"pnpm": ">=8.7.0",
"node": ">=18"
},
"sideEffects": false,
"packageManager": "[email protected]"
}
Loading

0 comments on commit 9049568

Please sign in to comment.