Skip to content

Commit

Permalink
Add release script for changeset
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarlagerlof committed Oct 8, 2023
1 parent a310255 commit e4f632b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
uses: changesets/action@v1
with:
version: yarn version
publish: yarn release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
],
"scripts": {
"build": "turbo run build",
"release": "turbo run release",
"lint": "turbo run lint",
"test": "turbo run test",
"typecheck": "turbo run typecheck",
"format": "turbo run format",
"ci": "turbo run ci",
"dev": "turbo run dev",
"version": "bash ./apply-version.sh && changeset version"
"version": "bash ./apply-version.sh && changeset version",
"release": "changeset release"
},
"packageManager": "yarn@3.6.4",
"devDependencies": {
Expand Down
3 changes: 1 addition & 2 deletions packages/chrome-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@
"lint": "eslint . --ext .js,.jsx,.ts,.tsx --ignore-pattern \"/dist\"/",
"format": "prettier . --check --config ../../.prettierrc",
"dev": "vite build --mode development && vite dev",
"build": "vite build && sed -i'.backup' 's| http://localhost:6020||g' dist/manifest.json && rm dist/manifest.json.backup",
"release": "zip -r dist.zip dist"
"build": "vite build && sed -i'.backup' 's| http://localhost:6020||g' dist/manifest.json && rm dist/manifest.json.backup"
},
"type": "module"
}

0 comments on commit e4f632b

Please sign in to comment.