Skip to content

Commit

Permalink
Ensure deps are deduped to keep lockfile smaller (#1150)
Browse files Browse the repository at this point in the history
  • Loading branch information
amitdahan authored Jul 31, 2024
1 parent 7d78029 commit 1b50ad6
Show file tree
Hide file tree
Showing 3 changed files with 119 additions and 4,064 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,12 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup .yarnrc.yml
if: github.actor != 'dependabot[bot]'
run: |
yarn config set npmAuthToken $NPM_TOKEN || echo "No NPM_TOKEN found"
yarn config set npmAlwaysAuth true
echo //registry.npmjs.org/:_authToken=$NPM_TOKEN > ~/.npmrc || echo "No NPM_TOKEN found"
env:
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
- name: Install
run: yarn install --immutable
- name: Ensure deps are deduped
run: yarn dedupe --check
- name: Build
run: yarn build
- name: Test
run: yarn test
- name: Lint
Expand All @@ -57,3 +53,4 @@ jobs:
GIT_NAME: ${{secrets.GIT_NAME}}
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
npmAuthToken: ${{secrets.NPM_PUBLISH_TOKEN}}
YARN_NPM_AUTH_TOKEN: ${{secrets.NPM_PUBLISH_TOKEN}}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"dev": "vx dev",
"website:start": "yarn workspace website start",
"website:build": "yarn workspace website build",
"postinstall": "vx build --fastBuild"
"build:fast": "vx build --fastBuild"
},
"prettier": {
"arrowParens": "avoid",
Expand Down
Loading

0 comments on commit 1b50ad6

Please sign in to comment.