Skip to content

Commit 3af2723

Browse files
zhoushawScriptedAlchemysemantic-release-bot2heal1RussellCanfield
authored
chore: merge canary to main (#1785)
Co-authored-by: ScriptedAlchemy <[email protected]> Co-authored-by: semantic-release-bot <[email protected]> Co-authored-by: ScriptedAlchemy <[email protected]> Co-authored-by: 2heal1 <[email protected]> Co-authored-by: rcanfield <[email protected]> Co-authored-by: nyqykk <[email protected]> Co-authored-by: Bruno Silva <[email protected]> Co-authored-by: zhouxiao.shaw <[email protected]> Co-authored-by: zhouxiao.shaw <[email protected]>
1 parent fdc9eee commit 3af2723

File tree

375 files changed

+59523
-55268
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

375 files changed

+59523
-55268
lines changed

.changeset/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changesets
2+
3+
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4+
with multi-package repos, or single-package repos to help you version and publish your code. You can
5+
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
6+
7+
We have a quick list of common questions to get you started engaging with this project in
8+
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)

.changeset/config.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
3+
"changelog": "@changesets/cli/changelog",
4+
"commit": false,
5+
"fixed": [
6+
[
7+
"@module-federation/runtime",
8+
"@module-federation/enhanced",
9+
"@module-federation/webpack-bundler-runtime",
10+
"@module-federation/sdk"
11+
]
12+
],
13+
"ignorePatterns": ["^alpha|^beta"],
14+
"linked": [],
15+
"access": "restricted",
16+
"baseBranch": "canary",
17+
"updateInternalDependencies": "patch",
18+
"ignore": []
19+
}

.changeset/nice-days-learn.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@module-federation/runtime': patch
3+
---
4+
5+
fix: add runtime api

.eslintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"files": ["*.json"],
4949
"parser": "jsonc-eslint-parser",
5050
"rules": {
51-
"@nx/dependency-checks": "error"
51+
"@nx/dependency-checks": "off"
5252
}
5353
}
5454
]

.github/pr-labeler.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
'change: feat':
2+
- '/^(feat|types|style)/'
3+
'change: fix':
4+
- '/^fix/'
5+
'change: perf':
6+
- '/^perf/'
7+
'change: breaking':
8+
- '/^breaking change/'
9+
'change: docs':
10+
- '/^docs/'

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

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,21 @@ jobs:
1717
- uses: actions/checkout@v3
1818
with:
1919
fetch-depth: 0
20+
- name: Install Pnpm
21+
run: corepack enable
22+
- name: Setup Node.js 18
23+
uses: actions/setup-node@v3
24+
with:
25+
node-version: '18'
26+
cache: 'pnpm'
27+
- name: Install cypress
28+
run: npx cypress install
2029
- uses: nrwl/nx-set-shas@v3
21-
- run: npm ci
22-
30+
- run: pnpm install
2331
- run: npx nx format:check
24-
- run: npx nx affected -t lint --parallel=3 --exclude='*,!tag:package'
32+
- run: npx nx affected -t build --parallel=10 --exclude='*,!tag:package'
33+
- run: npx nx affected -t lint --parallel=7 --exclude='*,!tag:package'
2534
- run: npx nx affected -t test --parallel=3 --exclude='*,!tag:package'
26-
- run: npx nx affected -t build --parallel=3 --exclude='*,!tag:package'
35+
- run: npx nx run-many --target=serve --projects=3000-home,3001-shop,3002-checkout --parallel=3 & echo "done"
36+
- run: sleep 6 && npx nx run-many --target=test:e2e --projects=3000-home,3001-shop,3002-checkout --parallel=1
37+
- run: lsof -ti tcp:3000,3001,3002 | xargs kill

.github/workflows/pr-label.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: PR Labeler
2+
3+
on:
4+
pull_request_target:
5+
types:
6+
- opened
7+
- edited
8+
9+
jobs:
10+
change-labeling:
11+
name: Labeling for changes
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: github/[email protected]
15+
with:
16+
repo-token: '${{ secrets.GITHUB_TOKEN }}'
17+
configuration-path: .github/pr-labeler.yml
18+
enable-versioned-regex: 0
19+
include-title: 1
20+
sync-labels: 1
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Release Pull Request
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
version:
7+
type: choice
8+
description: 'Release Type (next, beta, alpha, latest)'
9+
required: true
10+
default: 'latest'
11+
options:
12+
- next
13+
- beta
14+
- alpha
15+
- latest
16+
17+
jobs:
18+
release:
19+
name: Create Release Pull Request
20+
runs-on: ubuntu-latest
21+
steps:
22+
- name: Checkout Repo
23+
uses: actions/checkout@master
24+
with:
25+
# This makes Actions fetch only one branch to release
26+
fetch-depth: 10
27+
28+
- name: Install Pnpm
29+
run: corepack enable
30+
31+
- name: Setup Node.js 18
32+
uses: actions/setup-node@v3
33+
with:
34+
node-version: '18'
35+
cache: 'pnpm'
36+
37+
- name: Install Dependencies
38+
run: pnpm install --ignore-scripts
39+
40+
- name: Create Release Pull Request
41+
uses: web-infra-dev/actions@v2
42+
with:
43+
# this expects you to have a script called release which does a build for your packages and calls changeset publish
44+
version: ${{ github.event.inputs.version || 'latest' }}
45+
versionNumber: 'auto'
46+
type: 'pull request'
47+
tools: 'changeset'
48+
env:
49+
GITHUB_TOKEN: ${{ secrets.REPO_SCOPED_TOKEN }}
50+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
51+
REPOSITORY: ${{ github.repository }}
52+
REF: ${{ github.ref }}

.github/workflows/release.yml

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
name: Release
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
version:
6+
type: choice
7+
description: 'Release Version (next, beta, alpha, latest)'
8+
required: true
9+
default: 'next'
10+
options:
11+
- next
12+
- beta
13+
- alpha
14+
- latest
15+
branch:
16+
description: 'Release Branch (confirm release branch)'
17+
required: true
18+
default: 'canary'
19+
issue_comment:
20+
types: [created]
21+
22+
permissions:
23+
id-token: write
24+
25+
jobs:
26+
issue_comment:
27+
name: Release with comment
28+
if: github.event.issue.pull_request && contains(github.event.comment.body, '!canary')
29+
runs-on: ubuntu-latest
30+
31+
steps:
32+
- name: Checkout Repo
33+
uses: actions/checkout@v3
34+
with:
35+
fetch-depth: 1
36+
ref: refs/pull/${{ github.event.issue.number }}/head
37+
38+
- name: Install Pnpm
39+
run: corepack enable
40+
41+
- name: Setup Node.js 18
42+
uses: actions/setup-node@v3
43+
with:
44+
node-version: '18'
45+
cache: 'pnpm'
46+
47+
- name: Install deps
48+
run: pnpm install
49+
50+
- name: Build and test Packages
51+
run: npx nx affected -t pre-release --parallel=3 --exclude='*,!tag:package' --base=origin/canary --head=${{ github.ref }}
52+
53+
- name: Release
54+
uses: web-infra-dev/actions@v2
55+
with:
56+
version: 'next'
57+
type: 'release'
58+
branch: ''
59+
tools: 'changeset'
60+
env:
61+
GITHUB_TOKEN: ${{ secrets.REPO_SCOPED_TOKEN }}
62+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
63+
REPOSITORY: ${{ github.repository }}
64+
PULL_REQUEST_NUMBER: ${{ github.event.issue.number }}
65+
COMMENT: ${{ toJson(github.event.comment) }}
66+
67+
release:
68+
name: Release
69+
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'push' }}
70+
runs-on: ubuntu-latest
71+
steps:
72+
- name: Checkout
73+
uses: actions/checkout@v3
74+
with:
75+
fetch-depth: 25
76+
77+
- name: Install Pnpm
78+
run: corepack enable
79+
80+
- name: Setup Node.js 18
81+
uses: actions/setup-node@v3
82+
with:
83+
node-version: '18'
84+
cache: 'pnpm'
85+
86+
- name: Install deps
87+
run: pnpm install
88+
89+
- name: Build and test Packages
90+
run: |
91+
git fetch origin canary
92+
npx nx affected -t pre-release --parallel=3 --exclude='*,!tag:package' --base=origin/canary --head=${{ github.ref }}
93+
94+
- name: Release
95+
uses: web-infra-dev/actions@v2
96+
with:
97+
version: ${{ github.event.inputs.version || 'next' }}
98+
branch: ${{ github.event.inputs.branch }}
99+
type: 'release'
100+
tools: 'changeset'
101+
env:
102+
GITHUB_TOKEN: ${{ secrets.REPO_SCOPED_TOKEN }}
103+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
104+
REPOSITORY: ${{ github.repository }}
105+
REF: ${{ github.ref }}

.github/workflows/trigger-release.yml renamed to .github/workflows/trigger-release-abandon.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,13 @@ on:
1111
- affected
1212
- all
1313
- nextjs-mf
14+
- runtime
15+
- sdk
1416
- node
1517
- storybook-addon
1618
- typescript
1719
- utils
20+
- webpack-bundler-runtime
1821
- native-federation-typescript
1922
- native-federation-tests
2023
- enhanced

0 commit comments

Comments
 (0)