Skip to content

Commit

Permalink
test: v0.4.1-alpha5
Browse files Browse the repository at this point in the history
  • Loading branch information
rjsduf0503 committed May 29, 2023
1 parent 4d85650 commit 5f691c8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,20 @@ jobs:
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}
- run: yarn cache clean
- run: yarn tsc-build:outDir
- run: |
npm config set '//registry.npmjs.org/:_authToken' ${{ secrets.NPM_AUTH_TOKEN }}
npm config set access public
- run: |
sed -i "s|CHROMATIC_HOMEPAGE|${{ steps.chromatic.outputs.storybookUrl }}|" package.json
- run: yarn publish:npm-outDir
- run: yarn publish
- run: |
sed -i "s|${{ steps.chromatic.outputs.storybookUrl }}|CHROMATIC_HOMEPAGE|" package.json
- run: cp -R build/* dist/
- run: |
git config --global user.name "류건열"
git config --global user.email "rjsduf0503@naver.com"
- run: |
git add dist
git commit -am 'build: automate deploy dist'
Expand Down
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
"description": "Image src based retro typography with scattering animation",
"private": false,
"files": [
"build"
"dist"
],
"main": "build/react-scatter-graphy.umd.js",
"module": "build/react-scatter-graphy.es.js",
"types": "build/index.d.ts",
"main": "dist/react-scatter-graphy.umd.js",
"module": "dist/react-scatter-graphy.es.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"import": "./build/react-scatter-graphy.es.js",
"require": "./build/react-scatter-graphy.umd.js"
"import": "./dist/react-scatter-graphy.es.js",
"require": "./dist/react-scatter-graphy.umd.js"
}
},
"license": "MIT",
Expand Down Expand Up @@ -44,7 +44,7 @@
"tsc-build": "yarn clean && yarn build && yarn copy-files",
"publish:npm": "yarn tsc-build && yarn publish",
"build:outDir": "tsc && vite build --outDir build",
"clean:outDir": "npm cache clean --force && rimraf build && rimraf dist",
"clean:outDir": "rimraf build",
"copy-files:outDir": "copyfiles README.md build",
"tsc-build:outDir": "yarn clean:outDir && yarn build:outDir && yarn copy-files:outDir",
"publish:npm-outDir": "yarn tsc-build:outDir && yarn publish",
Expand Down

0 comments on commit 5f691c8

Please sign in to comment.