Skip to content

Commit

Permalink
Merge pull request #34 from vunguyentuan/ci-update-deploy-script
Browse files Browse the repository at this point in the history
ci: update release script
  • Loading branch information
vunguyentuan authored Aug 28, 2022
2 parents f880e6a + c76263b commit 47b2501
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ jobs:
- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
# with:
# publish: yarn release
with:
publish: npm run release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Publish to VSCode Marketplace
if: steps.changesets.outputs.published == 'true'
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"lint": "turbo run lint",
"dev": "turbo run dev",
"package": "turbo run package",
"deploy": "turbo run deploy"
"deploy": "turbo run deploy",
"release": "npm run build && changeset publish"
},
"devDependencies": {
"@changesets/cli": "^2.24.3",
Expand Down

0 comments on commit 47b2501

Please sign in to comment.