Skip to content

Commit 1b0c649

Browse files
committed
🔧 Tweak publish action to run automatically and install twine
1 parent 1fa00a5 commit 1b0c649

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: Release
22

3-
on: workflow_dispatch
3+
on:
4+
push:
5+
branches:
6+
- main
47

58
concurrency: ${{ github.workflow }}-${{ github.ref }}
69

@@ -28,7 +31,7 @@ jobs:
2831
run: npm run build
2932
- name: Run tests
3033
run: npm run test
31-
- name: Version bump and publish to npm
34+
- name: Version bump and create pull request OR publish to npm
3235
id: changesets
3336
uses: changesets/action@v1
3437
with:
@@ -41,5 +44,6 @@ jobs:
4144
- name: Publish to PyPI
4245
if: steps.changesets.outputs.published == 'true'
4346
run: |
47+
pip install twine
4448
cd packages/mystmd-py
4549
bash scripts/pypi-deploy.sh

0 commit comments

Comments
 (0)