Skip to content

Commit da8e80e

Browse files
ci (#3)
1 parent 57d5ce1 commit da8e80e

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/workflows/publish-to-pypi.yml

+6
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,15 @@ jobs:
1818
- run: poetry build
1919
- run: pip install twine
2020
- run: twine upload dist/* -ualex-treebeard -p${{ secrets.PYPI_PASSWORD }}
21+
- run: yarn set version ${GITHUB_REF:10}
22+
- name: publish extension
23+
run: cd .. && yarn && yarn version --no-git-tag-version --new-version ${GITHUB_REF:10} && vsce publish
24+
env:
25+
VSCE_PAT: ${{ secrets.VSCE_PAT }}
2126
- uses: EndBug/[email protected]
2227
with:
2328
author_name: github-actions
2429
author_email: 41898282+github-actions[bot]@users.noreply.github.com
2530
add: python-cli/pyproject.toml
2631
branch: main
32+
message: Published version ${GITHUB_REF:10}

package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,8 @@
7272
"url": "https://github.com/treebeardtech/deepcov"
7373
},
7474
"scripts": {
75-
"compile": "tsc -p ./",
75+
"compile": "tsc -p ./ && yarn run lint",
7676
"lint": "eslint src --ext ts",
77-
"pretest": "yarn run compile && yarn run lint",
7877
"test": "node ./out/test/runTest.js",
7978
"vscode:prepublish": "yarn run compile",
8079
"watch": "tsc -watch -p ./"

0 commit comments

Comments
 (0)