Skip to content

Commit

Permalink
fix: remove postinstall script
Browse files Browse the repository at this point in the history
  • Loading branch information
moroine committed Nov 13, 2023
1 parent 3f3b1ca commit 1019798
Show file tree
Hide file tree
Showing 8 changed files with 11,440 additions and 9,897 deletions.
23 changes: 6 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,33 +18,22 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 20

- uses: actions/cache@v3
with:
path: |
**/node_modules
.yarn/install-state.gz
.yarn/cache
key: yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: yarn-
cache: "npm"

- name: Install dependencies
run: yarn install

- name: Make sure to use same dependencies version across all packages
run: yarn dedupe --check
run: npm ci

- name: lint
run: yarn lint
run: npm run lint

- name: typecheck
run: yarn typecheck
run: npm run typecheck

- name: test
run: yarn test:ci
run: npm run test:ci

- name: prettier
run: yarn prettier:check
run: npm run prettier:check

- name: Upload coverage report to Codecov
uses: codecov/codecov-action@v3
Expand Down
16 changes: 4 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,27 +29,19 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 20

- uses: actions/cache@v3
with:
path: |
**/node_modules
.yarn/install-state.gz
.yarn/cache
key: yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: yarn-
cache: "npm"

- name: Install dependencies
run: yarn install
run: npm ci

- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
run: npm audit signatures

- name: Build
run: yarn build
run: npm run build

- name: bump and release
run: yarn release
run: npm run release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

yarn lint-staged
npx lint-staged
893 changes: 0 additions & 893 deletions .yarn/releases/yarn-4.0.1.cjs

This file was deleted.

3 changes: 0 additions & 3 deletions .yarnrc.yml

This file was deleted.

Loading

0 comments on commit 1019798

Please sign in to comment.