Skip to content

Commit

Permalink
chore(workflow): fix release pkg logic (#1800)
Browse files Browse the repository at this point in the history
Co-authored-by: zhouxiao.shaw <[email protected]>
  • Loading branch information
zhoushaw and zhouxiao.shaw authored Dec 20, 2023
1 parent ffd3c0d commit 966c737
Show file tree
Hide file tree
Showing 17 changed files with 65 additions and 8 deletions.
5 changes: 5 additions & 0 deletions .changeset/chilly-colts-eat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@module-federation/utilities': patch
---

fix: Fixed an anomaly in exports Settings that caused an inability
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules/
vite.config.ts
**/dist/**
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
run: pnpm install

- name: Build and test Packages
run: npx nx affected -t pre-release --parallel=3 --exclude='*,!tag:package' --base=origin/canary --head=${{ github.ref }}
run: npx nx run-many --target=build --exclude='*,!tag:package'

- name: Release
uses: web-infra-dev/actions@v2
Expand Down Expand Up @@ -89,7 +89,7 @@ jobs:
- name: Build and test Packages
run: |
git fetch origin main
npx nx affected -t pre-release --parallel=3 --exclude='*,!tag:package' --base=main --head=${{ github.ref }}
npx nx run-many --target=build --exclude='*,!tag:package'
- name: Release
uses: web-infra-dev/actions@v2
Expand Down
1 change: 0 additions & 1 deletion apps/node-host/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"main": "apps/node-host/src/main.js",
"tsConfig": "apps/node-host/tsconfig.app.json",
"assets": ["apps/node-host/src/assets"],
"isolatedConfig": true,
"webpackConfig": "apps/node-host/webpack.config.js"
},
"configurations": {
Expand Down
6 changes: 5 additions & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
{
"name": "@module-federation/core",
"version": "1.0.0-canary.1",
"version": "0.0.1",
"type": "commonjs",
"main": "./dist/src/index.js",
"types": "./dist/src/index.d.ts",
"files": [
"dist/",
"README.md"
],
"license": "MIT",
"publishConfig": {
"access": "public"
Expand Down
4 changes: 4 additions & 0 deletions packages/enhanced/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
"type": "commonjs",
"main": "./dist/src/index.js",
"types": "./dist/src/index.d.ts",
"files": [
"dist/",
"README.md"
],
"publishConfig": {
"access": "public"
},
Expand Down
6 changes: 5 additions & 1 deletion packages/native-federation-tests/package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
{
"name": "@module-federation/native-federation-tests",
"version": "1.0.0-canary.1",
"version": "0.2.1",
"description": "Bundler agnostic unplugin to share federated tests",
"publishConfig": {
"access": "public"
},
"files": [
"dist/",
"README.md"
],
"exports": {
".": {
"import": "./dist/index.mjs",
Expand Down
6 changes: 5 additions & 1 deletion packages/native-federation-typescript/package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
{
"name": "@module-federation/native-federation-typescript",
"version": "1.0.0-canary.1",
"version": "0.2.6",
"description": "Bundler agnostic unplugin to share federated types",
"keywords": [
"module federation",
"typescript",
"remote types",
"federated types"
],
"files": [
"dist/",
"README.md"
],
"publishConfig": {
"access": "public"
},
Expand Down
8 changes: 8 additions & 0 deletions packages/nextjs-mf/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,24 @@
"contributors": [
"Pavel Chertorogov, nodkz <[email protected]> (www.ps.kz)"
],
"files": [
"dist/",
"README.md"
],
"exports": {
".": "./dist/src/index.js",
"./utilities": "./dist/utilities.js",
"./utils": "./dist/utils/index.js",
"./*": "./*"
},
"typesVersions": {
"*": {
".": [
"./dist/src/index.d.ts"
],
"utils": [
"./dist/utils/index.d.ts"
],
"utilities": [
"./dist/utilities.d.ts"
]
Expand Down
6 changes: 5 additions & 1 deletion packages/node/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"public": true,
"name": "@module-federation/node",
"version": "2.1.0-canary.6",
"version": "2.0.2-beta.6",
"type": "commonjs",
"main": "./dist/src/index.js",
"exports": {
Expand All @@ -18,6 +18,10 @@
"./src/plugins/NodeFederationPlugin.js": "./dist/src/plugins/NodeFederationPlugin.js",
"./src/": "./dist/src/"
},
"files": [
"dist/",
"README.md"
],
"publishConfig": {
"access": "public"
},
Expand Down
4 changes: 4 additions & 0 deletions packages/runtime/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
"publishConfig": {
"access": "public"
},
"files": [
"dist/",
"README.md"
],
"exports": {
".": {
"import": "./dist/index.esm.js",
Expand Down
4 changes: 4 additions & 0 deletions packages/sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
"Module Federation",
"sdk"
],
"files": [
"dist/",
"README.md"
],
"publishConfig": {
"access": "public"
},
Expand Down
4 changes: 4 additions & 0 deletions packages/storybook-addon/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
"storybook",
"addon"
],
"files": [
"dist/",
"README.md"
],
"author": "Fiodorov Andrei <[email protected]> (https://github.com/fyodorovandrei)",
"exports": {
".": {
Expand Down
4 changes: 4 additions & 0 deletions packages/typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
"remote types",
"federated types"
],
"files": [
"dist/",
"README.md"
],
"publishConfig": {
"access": "public"
},
Expand Down
4 changes: 4 additions & 0 deletions packages/utilities/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
"publishConfig": {
"access": "public"
},
"files": [
"dist/",
"README.md"
],
"repository": "https://github.com/module-federation/universe/tree/main/packages/utilities",
"devDependencies": {
"react": "18.2.0"
Expand Down
4 changes: 4 additions & 0 deletions packages/webpack-bundler-runtime/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
"Module Federation",
"bundler runtime"
],
"files": [
"dist/",
"README.md"
],
"publishConfig": {
"access": "public"
},
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.tmp.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "tsconfig.base.json",
"extends": "./tsconfig.base.json",
"compilerOptions": {
"paths": {}
}
Expand Down

0 comments on commit 966c737

Please sign in to comment.