Skip to content

Commit f2bcd64

Browse files
committed
- removes yarn from workflow to align with other repositories
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
1 parent 851fefb commit f2bcd64

File tree

5 files changed

+15317
-7632
lines changed

5 files changed

+15317
-7632
lines changed

.github/workflows/build_test_validate.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ jobs:
2525
- run: .\scripts\updateVersion.ps1
2626
shell: pwsh
2727
working-directory: ./
28-
- run: yarn install --frozen-lockfile --ignore-engines #spfx still not compatible with node 18
29-
- run: yarn global add mocha@10.X
30-
- run: yarn run build
28+
- run: npm ci
29+
- run: npm install -g mocha@10.X
30+
- run: npm run build
3131
- name: Archive dist folders # archive dist folders to verify if they are transpiled correctly and available for publishing
3232
uses: actions/upload-artifact@v4
3333
with:
@@ -40,14 +40,14 @@ jobs:
4040
packages/serialization/text/dist
4141
packages/http/fetch/dist
4242
packages/authentication/azure/dist
43-
- run: yarn lerna run test:integrated
43+
- run: npx lerna run test:integrated
4444
if: ${{env.TENANT_ID != '' }}
4545
env:
4646
TENANT_ID: ${{secrets.tenant_id}}
4747
CLIENT_ID: ${{secrets.client_id}}
4848
CLIENT_SECRET: ${{secrets.client_secret}}
4949
USER_ID: "813956a3-4a30-4596-914f-bfd86a657a09"
50-
- run: yarn lerna run test --parallel
50+
- run: npx lerna run test --parallel
5151

5252
publish-npm:
5353
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' && !contains(github.event.head_commit.message, 'auto dependabot')}}
@@ -67,9 +67,9 @@ jobs:
6767
env:
6868
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6969
GITHUB_ACTOR: ${{ secrets.GIT_USERNAME }}
70-
- run: yarn install --frozen-lockfile --ignore-engines
71-
- run: yarn run build
72-
- run: lerna publish from-package --yes
70+
- run: npm ci
71+
- run: npm run build
72+
- run: npx lerna publish from-package --yes
7373
env:
7474
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
7575

docs/lerna-guide.md

-5
This file was deleted.

lerna.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"packages/serialization/*",
77
"packages/authentication/*"
88
],
9-
"npmClient": "yarn",
9+
"npmClient": "npm",
1010
"version": "independent",
1111
"$schema": "node_modules/lerna/schemas/lerna-schema.json"
1212
}

0 commit comments

Comments
 (0)