forked from element-plus/element-plus
-
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.
build(project): feat/release-automation (element-plus#1094)
- Add publish.sh for automated publishing
- Loading branch information
Showing
5 changed files
with
54 additions
and
6 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 |
---|---|---|
@@ -1,8 +1,11 @@ | ||
import { App } from 'vue' | ||
import SkeletonItem from './src/index.vue' | ||
import type { SFCWithInstall } from '@element-plus/utils/types' | ||
|
||
SkeletonItem.install = (app: App): void => { | ||
app.component(SkeletonItem.name, SkeletonItem) | ||
} | ||
|
||
export default SkeletonItem | ||
const _SkeletonItem: SFCWithInstall<typeof SkeletonItem> = SkeletonItem | ||
|
||
export default _SkeletonItem |
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 |
---|---|---|
@@ -1,8 +1,11 @@ | ||
import { App } from 'vue' | ||
import Skeleton from './src/index.vue' | ||
import type { SFCWithInstall } from '@element-plus/utils/types' | ||
|
||
Skeleton.install = (app: App): void => { | ||
app.component(Skeleton.name, Skeleton) | ||
} | ||
|
||
export default Skeleton | ||
const _Skeleton: SFCWithInstall<typeof Skeleton> = Skeleton | ||
|
||
export default _Skeleton |
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 |
---|---|---|
@@ -1,8 +1,11 @@ | ||
import { App } from 'vue' | ||
import Space from './src/index' | ||
import type { SFCWithInstall } from '@element-plus/utils/types' | ||
|
||
Space.install = (app: App): void => { | ||
app.component(Space.name, Space) | ||
} | ||
|
||
export default Space | ||
const _Space: SFCWithInstall<typeof Space> = Space as any | ||
|
||
export default _Space |
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,11 @@ | ||
#! /usr/bin/bash | ||
|
||
# Do not run this file without setting the environment variables, you will end up fatal error | ||
# If you wish to run this locally, please change the env variable before running this. | ||
|
||
WORKING_PATH="../$(dirname $0)" | ||
cd $WORKING_PATH | ||
|
||
cat package.json | grep -v '"private":' | grep -v '"version":' | sed "s/\(\"name\": \"@element-plus\/icons\"\)/\1,\n \"version\": \"${TAG_VERSION}\"/g" > package.json | ||
|
||
npm publish --registry ${REGISTRY} --access public |