Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update script #83

Merged
merged 1 commit into from
Dec 23, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ jobs:
version: 7
- run: |
pnpm i
pnpm build
pnpm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

🔗 <https://eastsun5566.github.io/cc-gram/>

![Demo GIF](./demo/demo.gif)
![Demo GIF](./demo.gif)

## 🤔 The Why

Expand Down Expand Up @@ -173,14 +173,14 @@ const blob = await cg.getBlob(image, {

```sh
# install deps
npm i
pnpm i

# fix style
npm run lint
pnpm run lint

# run test
npm test
pnpm test

# build for prod
npm run build
pnpm run build
```
File renamed without changes
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"test": "vitest __tests__",
"test:coverage": "vitest run __tests__ --coverage",
"lint": "eslint --fix --ignore-path .gitignore --ext .js,.ts src",
"prepublishOnly": "pnpm build",
"release": "sh scripts/release.sh",
"demo:dev": "pnpm -C demo dev"
},
Expand Down
4 changes: 2 additions & 2 deletions scripts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ set -e
cd demo

# make sure pkg is latest version
npm i cc-gram@latest
pnpm i cc-gram@latest

# deploy
npm run deploy
pnpm run deploy

cd -
6 changes: 3 additions & 3 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
# abort on errors
set -e

echo "check out & sync master"
git checkout master
echo "check out & sync main"
git checkout main
git pull

npx standard-version
pnpx standard-version

echo "push tags"
git push --follow-tags
Expand Down