Skip to content

Commit a8954f0

Browse files
authored
chore/move to npm (#1029)
* chore: move to npm * chore: change resolutions to overrides * deps: upgrade package-json with new versions * deps: fix jest version * fix: remove npmjs workaround from npmrc
1 parent 9762761 commit a8954f0

20 files changed

Lines changed: 18264 additions & 10344 deletions

.github/workflows/build-and-deploy-dev.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ jobs:
1010
uses: actions/checkout@v2
1111
with:
1212
registry-url: 'https://npm.pkg.github.com'
13-
- run: echo "registry=https://registry.yarnpkg.com/" > .npmrc
1413
- run: echo "@internxt:registry=https://npm.pkg.github.com" >> .npmrc
1514
# You cannot read packages from other private repos with GITHUB_TOKEN
1615
# You have to use a PAT instead https://github.com/actions/setup-node/issues/49

.github/workflows/build-and-deploy.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ jobs:
1010
uses: actions/checkout@v2
1111
with:
1212
registry-url: 'https://npm.pkg.github.com'
13-
- run: echo "registry=https://registry.yarnpkg.com/" > .npmrc
1413
- run: echo "@internxt:registry=https://npm.pkg.github.com" >> .npmrc
1514
# You cannot read packages from other private repos with GITHUB_TOKEN
1615
# You have to use a PAT instead https://github.com/actions/setup-node/issues/49

.github/workflows/build-and-publish-preview.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ jobs:
1010
uses: actions/checkout@v2
1111
with:
1212
registry-url: 'https://npm.pkg.github.com'
13-
- run: echo "registry=https://registry.yarnpkg.com/" > .npmrc
1413
- run: echo "@internxt:registry=https://npm.pkg.github.com" >> .npmrc
1514
# You cannot read packages from other private repos with GITHUB_TOKEN
1615
# You have to use a PAT instead https://github.com/actions/setup-node/issues/49

.github/workflows/check-pr-size.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717

1818
- name: Get lines changed
1919
run: |
20-
LINES=$(git diff --shortstat origin/${{ github.base_ref }}...HEAD -- . ':!*.spec*' ':!package.json' ':!yarn.lock' | awk '{print $4 + $6}')
20+
LINES=$(git diff --shortstat origin/${{ github.base_ref }}...HEAD -- . ':!*.spec*' ':!package.json' ':!package-lock.json' | awk '{print $4 + $6}')
2121
echo "Lines changed: $LINES"
2222
echo "LINES_CHANGED=$LINES" >> $GITHUB_ENV
2323

.github/workflows/deploy-feature.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ jobs:
2525
registry-url: 'https://npm.pkg.github.com'
2626
- name: Create .npmrc file
2727
run: |
28-
echo "registry=https://registry.yarnpkg.com/" > .npmrc
2928
echo "@internxt:registry=https://npm.pkg.github.com" >> .npmrc
3029
# You cannot read packages from other private repos with GITHUB_TOKEN
3130
# You have to use a PAT instead https://github.com/actions/setup-node/issues/49

.github/workflows/deploy-pr-preview.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ jobs:
1010
uses: actions/checkout@v2
1111
with:
1212
registry-url: 'https://npm.pkg.github.com'
13-
- run: echo "registry=https://registry.yarnpkg.com/" > .npmrc
1413
- run: echo "@internxt:registry=https://npm.pkg.github.com" >> .npmrc
1514
# You cannot read packages from other private repos with GITHUB_TOKEN
1615
# You have to use a PAT instead https://github.com/actions/setup-node/issues/49

.github/workflows/pre-build.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,12 @@ jobs:
1616
uses: actions/checkout@v2
1717
- name: Setup npm
1818
run: |
19-
echo "registry=https://registry.yarnpkg.com/" > .npmrc
2019
echo "@internxt:registry=https://npm.pkg.github.com" >> .npmrc
2120
echo "//npm.pkg.github.com/:_authToken=${NPM_TOKEN}" >> .npmrc
2221
echo "always-auth=true" >> .npmrc
2322
env:
2423
NPM_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
2524
- name: Install dependencies
26-
run: yarn install
25+
run: npm ci --ignore-scripts
2726
- name: Build
28-
run: yarn build
27+
run: npm run build

.github/workflows/run-ci-tests.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ jobs:
3333
env:
3434
PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
3535
run: |
36-
echo "registry=https://registry.yarnpkg.com/" > .npmrc
3736
echo "@internxt:registry=https://npm.pkg.github.com" >> .npmrc
3837
echo "//npm.pkg.github.com/:_authToken=${PERSONAL_ACCESS_TOKEN}" >> .npmrc
3938
echo "always-auth=true" >> .npmrc
@@ -44,7 +43,7 @@ jobs:
4443
compose-file: './infrastructure/docker-compose.yml'
4544

4645
- name: Install dependencies
47-
run: yarn
46+
run: npm ci --ignore-scripts
4847

4948
- name: Run e2e tests
50-
run: yarn migrate:test && yarn run db:seed:test:all && yarn run test:e2e
49+
run: npm run migrate:test && npm run db:seed:test:all && npm run test:e2e

.github/workflows/run-tests.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ jobs:
3030
registry-url: 'https://npm.pkg.github.com'
3131

3232
# We should see why permissions field is not doing the job. This should be removed
33-
- run: echo "registry=https://registry.yarnpkg.com/" > .npmrc
3433
- run: echo "@internxt:registry=https://npm.pkg.github.com" >> .npmrc
3534
# You cannot read packages from other private repos with GITHUB_TOKEN
3635
# You have to use a PAT instead https://github.com/actions/setup-node/issues/49
@@ -41,7 +40,7 @@ jobs:
4140
- run: echo "always-auth=true" >> .npmrc
4241

4342
- name: Install dependencies
44-
run: yarn
43+
run: npm ci --ignore-scripts
4544

4645
- name: Run unit tests
47-
run: yarn test
46+
run: npm run test

.github/workflows/sonar-analysis.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ jobs:
2323
node-version: ${{ matrix.node-version }}
2424
registry-url: 'https://npm.pkg.github.com'
2525

26-
- run: echo "registry=https://registry.yarnpkg.com/" > .npmrc
2726
- run: echo "@internxt:registry=https://npm.pkg.github.com" >> .npmrc
2827
# You cannot read packages from other private repos with GITHUB_TOKEN
2928
# You have to use a PAT instead https://github.com/actions/setup-node/issues/49
@@ -34,10 +33,10 @@ jobs:
3433
- run: echo "always-auth=true" >> .npmrc
3534

3635
- name: Install dependencies
37-
run: yarn
36+
run: npm ci --ignore-scripts
3837

3938
- name: Test and coverage
40-
run: yarn test:cov
39+
run: npm run test:cov
4140

4241
- name: SonarCloud Scan
4342
uses: SonarSource/sonarqube-scan-action@v6

0 commit comments

Comments
 (0)