Skip to content

Commit da8e80e

Browse files
author
Alex Remedios
authored
ci (#3)
1 parent 57d5ce1 commit da8e80e

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

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

Lines changed: 6 additions & 0 deletions
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/add-and-commit@v7.0.0
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

Lines changed: 1 addition & 2 deletions
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)