Skip to content

Commit 47b2501

Browse files
authored
Merge pull request vunguyentuan#34 from vunguyentuan/ci-update-deploy-script
ci: update release script
2 parents f880e6a + c76263b commit 47b2501

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ jobs:
2828
- name: Create Release Pull Request or Publish to npm
2929
id: changesets
3030
uses: changesets/action@v1
31-
# with:
32-
# publish: yarn release
31+
with:
32+
publish: npm run release
3333
env:
3434
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35-
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
35+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
3636

3737
- name: Publish to VSCode Marketplace
3838
if: steps.changesets.outputs.published == 'true'

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
"lint": "turbo run lint",
1212
"dev": "turbo run dev",
1313
"package": "turbo run package",
14-
"deploy": "turbo run deploy"
14+
"deploy": "turbo run deploy",
15+
"release": "npm run build && changeset publish"
1516
},
1617
"devDependencies": {
1718
"@changesets/cli": "^2.24.3",

0 commit comments

Comments
 (0)