Skip to content

Commit 56029a4

Browse files
fix(ci): stop modifying .npmrc during publish to avoid lerna EUNCOMMIT [EXT-00] (#10729)
1 parent 46e2959 commit 56029a4

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

.circleci/config.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,10 @@ commands:
1313
- run:
1414
name: Setup GitHub packages
1515
command: |
16-
if [ -f ./.npmrc ]; then mv ./.npmrc ./.npmrc.bak; fi
17-
echo "//npm.pkg.github.com/:_authToken=${GITHUB_PACKAGES_WRITE_TOKEN}" > ~/.npmrc
18-
echo "@contentful:registry=https://npm.pkg.github.com" >> ~/.npmrc
16+
echo "//npm.pkg.github.com/:_authToken=${GITHUB_PACKAGES_WRITE_TOKEN}" >> ~/.npmrc
1917
- run:
2018
name: Publish packages
2119
command: npm run publish-packages
22-
- run:
23-
name: Restore .npmrc
24-
when: always
25-
command: |
26-
if [ -f ./.npmrc.bak ]; then mv ./.npmrc.bak ./.npmrc; fi
2720

2821
set_since:
2922
steps:

0 commit comments

Comments
 (0)