forked from module-federation/core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change package ecosystem from yarn to npm (module-federation#906)
* chore: switch locks * Change package ecosystem from yarn to npm and update workflows This commit updates the package ecosystem from yarn to npm, and modifies the corresponding GitHub Action workflows. Changes are also made in package.json to reflect the shift to npm. ### .github/dependabot.yml - Change package-ecosystem from 'yarn' to 'npm' ### .github/workflows/on-push.yml - Replace occurrences of 'yarn.lock' with 'package-lock.json' - Change yarn install command to npm ci ### .github/workflows/pre-release.yml - Change yarn cache to npm cache - Replace yarn install command with npm ci ### .github/workflows/release.yml - Change yarn cache to npm cache - Replace yarn install command with npm ci ### package.json - Remove the 'workspaces' object and replace it with an array of workspaces * chore: attempt to fix tests * update locks * update nx * fix: update babel config and fix app test (module-federation#922) * update locks * update locks * chore:update locks * chore:update locks --------- Co-authored-by: fyodorovandrei <[email protected]>
- Loading branch information
1 parent
4b7bf0b
commit 3d7a75e
Showing
14 changed files
with
73,809 additions
and
20,724 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,10 +31,10 @@ jobs: | |
id: cache | ||
with: | ||
path: ${{ env.CACHE_NODE_MODULES_PATH }} | ||
key: build-${{ hashFiles('**/yarn.lock') }} | ||
key: build-${{ hashFiles('**/package-lock.json') }} | ||
- name: Install Dependencies | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
run: yarn install --frozen-lockfile | ||
run: npm ci --legacy-peer-deps | ||
- name: Check changes "website" | ||
id: website-changed | ||
run: echo "website-changed=$(node tools/scripts/ci-is-affected.mjs --appName=website --base=${{ env.BASE_REF}} --head=HEAD)" >> $GITHUB_OUTPUT | ||
|
@@ -53,7 +53,7 @@ jobs: | |
- uses: actions/cache@v3 | ||
with: | ||
path: ${{ env.CACHE_NODE_MODULES_PATH }} | ||
key: build-${{ hashFiles('**/yarn.lock') }} | ||
key: build-${{ hashFiles('**/package-lock.json') }} | ||
- run: npm run build:website | ||
- run: "npx netlify deploy --build --prod --message \"Deploy from GitHub Actions\"" | ||
env: | ||
|
@@ -71,11 +71,11 @@ jobs: | |
- uses: actions/cache@v3 | ||
with: | ||
path: ${{ env.CACHE_NODE_MODULES_PATH }} | ||
key: build-${{ hashFiles('**/yarn.lock') }} | ||
key: build-${{ hashFiles('**/package-lock.json') }} | ||
- uses: nelonoel/[email protected] | ||
- run: npm run build:website | ||
- run: "npx netlify deploy --build --message \"Deploy Preview from GitHub Actions\" --alias \"${{ env.BRANCH_NAME }}\"" | ||
env: | ||
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} | ||
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} | ||
NETLIFY_NEXT_PLUGIN_SKIP: true | ||
NETLIFY_NEXT_PLUGIN_SKIP: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,15 +15,15 @@ jobs: | |
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '16' | ||
cache: 'yarn' | ||
cache: 'npm' | ||
- name: Setup Git | ||
run: | | ||
git config user.name "GitHub Bot" | ||
git config user.email "[email protected]" | ||
- run: git fetch --no-tags --prune --depth=5 origin main | ||
name: Fetch Main branch | ||
- name: Install packages | ||
run: yarn install --frozen-lockfile | ||
run: npm ci --legacy-peer-deps | ||
- name: Retrieve effected projects | ||
id: effected-projects | ||
run: echo "projects=$($(yarn bin)/nx print-affected --type=lib --select=projects --base=origin/main)" >> $GITHUB_OUTPUT | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,13 +28,13 @@ jobs: | |
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '16' | ||
cache: 'yarn' | ||
cache: 'npm' | ||
- name: Setup Git | ||
run: | | ||
git config user.name "GitHub Bot" | ||
git config user.email "[email protected]" | ||
- name: Install packages | ||
run: yarn install --frozen-lockfile | ||
run: npm ci --legacy-peer-deps | ||
- name: Lint | ||
shell: bash | ||
run: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,5 +7,7 @@ | |
} | ||
] | ||
], | ||
"plugins": [] | ||
"plugins": [ | ||
"@babel/plugin-transform-react-jsx" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,4 +13,4 @@ marked.setOptions({ | |
}), | ||
}); | ||
|
||
module.exports = marked; | ||
module.exports = marked.parse; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"migrations": [ | ||
{ | ||
"cli": "nx", | ||
"version": "16.2.0-beta.0", | ||
"description": "Remove outputPath from run commands", | ||
"implementation": "./src/migrations/update-16-2-0/remove-run-commands-output-path", | ||
"package": "nx", | ||
"name": "16.2.0-remove-output-path-from-run-commands" | ||
}, | ||
{ | ||
"cli": "nx", | ||
"version": "16.2.0-beta.0", | ||
"description": "Remove react-test-renderer from package.json", | ||
"implementation": "./src/migrations/update-16-2-0-remove-package/update-16-2-0-remove-package", | ||
"package": "@nrwl/react", | ||
"name": "update-16-2-0-remove-package" | ||
} | ||
] | ||
} |
Oops, something went wrong.