Skip to content

Commit

Permalink
- removes yarn from workflow to align with other repositories
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Biret <[email protected]>
  • Loading branch information
baywet committed Feb 1, 2024
1 parent 851fefb commit f2bcd64
Show file tree
Hide file tree
Showing 5 changed files with 15,317 additions and 7,632 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/build_test_validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ jobs:
- run: .\scripts\updateVersion.ps1
shell: pwsh
working-directory: ./
- run: yarn install --frozen-lockfile --ignore-engines #spfx still not compatible with node 18
- run: yarn global add [email protected]
- run: yarn run build
- run: npm ci
- run: npm install -g [email protected]
- run: npm run build
- name: Archive dist folders # archive dist folders to verify if they are transpiled correctly and available for publishing
uses: actions/upload-artifact@v4
with:
Expand All @@ -40,14 +40,14 @@ jobs:
packages/serialization/text/dist
packages/http/fetch/dist
packages/authentication/azure/dist
- run: yarn lerna run test:integrated
- run: npx lerna run test:integrated
if: ${{env.TENANT_ID != '' }}
env:
TENANT_ID: ${{secrets.tenant_id}}
CLIENT_ID: ${{secrets.client_id}}
CLIENT_SECRET: ${{secrets.client_secret}}
USER_ID: "813956a3-4a30-4596-914f-bfd86a657a09"
- run: yarn lerna run test --parallel
- run: npx lerna run test --parallel

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

Expand Down
5 changes: 0 additions & 5 deletions docs/lerna-guide.md

This file was deleted.

2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"packages/serialization/*",
"packages/authentication/*"
],
"npmClient": "yarn",
"npmClient": "npm",
"version": "independent",
"$schema": "node_modules/lerna/schemas/lerna-schema.json"
}
Loading

0 comments on commit f2bcd64

Please sign in to comment.