Skip to content

Commit bb3a1e9

Browse files
committed
Adapted npm script and actions CI to publish language-extensions automatically
1 parent 8af8f25 commit bb3a1e9

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,5 @@ jobs:
2121
- run: npm publish
2222
env:
2323
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
24+
- run: cd language-extensions
25+
- run: npm publish

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"fix:prettier": "prettier --write .",
3434
"check:language-extensions": "tsc --strict language-extensions/index.d.ts",
3535
"preversion": "npm run build && npm test",
36-
"postversion": "git push && git push --tags"
36+
"postversion": "git push && git push --tags && NEW_VERSION=$(npm pkg get version --workspaces=false | tr -d \") && cd language-extensions && npm version $NEW_VERSION && git push && git push --tags"
3737
},
3838
"bin": {
3939
"tstl": "dist/tstl.js"

0 commit comments

Comments
 (0)