Skip to content

Commit

Permalink
Merge pull request #122 from lidofinance/fix-deploy-workspaces-update…
Browse files Browse the repository at this point in the history
…-false-npmrc

Attempt to fix npm release №2: use .npmrc
  • Loading branch information
alx-khramov committed Sep 9, 2024
2 parents 824625d + 2ddc5a2 commit 79eeb22
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 15 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ jobs:
run: yarn build
- name: Run tests
run: yarn test
- name: Setup .npmrc
run: |
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc
echo "workspaces-update=false" >> .npmrc
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish to NPM
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
3 changes: 1 addition & 2 deletions packages/constants/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@
],
"publishConfig": {
"registry": "https://registry.npmjs.org/",
"access": "public",
"workspaces-update": false
"access": "public"
},
"devDependencies": {
"@types/jest": "^27.0.2"
Expand Down
9 changes: 4 additions & 5 deletions packages/contracts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,12 @@
"lido-js-sdk",
"lidofinance"
],
"scripts": {
"typechain": "typechain --target=ethers-v5 --out-dir ./src/generated './src/abi/*.json'"
},
"publishConfig": {
"registry": "https://registry.npmjs.org/",
"access": "public",
"workspaces-update": false
"access": "public"
},
"scripts": {
"typechain": "typechain --target=ethers-v5 --out-dir ./src/generated './src/abi/*.json'"
},
"devDependencies": {
"@ethersproject/abi": "^5.4.1",
Expand Down
3 changes: 1 addition & 2 deletions packages/fetch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@
],
"publishConfig": {
"registry": "https://registry.npmjs.org/",
"access": "public",
"workspaces-update": false
"access": "public"
},
"devDependencies": {
"@types/jest": "^27.0.2",
Expand Down
3 changes: 1 addition & 2 deletions packages/helpers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@
],
"publishConfig": {
"registry": "https://registry.npmjs.org/",
"access": "public",
"workspaces-update": false
"access": "public"
},
"devDependencies": {
"@ethersproject/bignumber": "^5.4.2",
Expand Down
3 changes: 1 addition & 2 deletions packages/providers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@
],
"publishConfig": {
"registry": "https://registry.npmjs.org/",
"access": "public",
"workspaces-update": false
"access": "public"
},
"devDependencies": {
"@ethersproject/logger": "^5.4.0",
Expand Down
3 changes: 1 addition & 2 deletions packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@
],
"publishConfig": {
"registry": "https://registry.npmjs.org/",
"access": "public",
"workspaces-update": false
"access": "public"
},
"devDependencies": {
"@ethersproject/bignumber": "^5.4.2",
Expand Down

0 comments on commit 79eeb22

Please sign in to comment.