Skip to content

Commit

Permalink
🔧 Tweak publish action to run automatically and install twine
Browse files Browse the repository at this point in the history
  • Loading branch information
fwkoch committed Aug 2, 2023
1 parent 1fa00a5 commit 1b0c649
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Release

on: workflow_dispatch
on:
push:
branches:
- main

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

Expand Down Expand Up @@ -28,7 +31,7 @@ jobs:
run: npm run build
- name: Run tests
run: npm run test
- name: Version bump and publish to npm
- name: Version bump and create pull request OR publish to npm
id: changesets
uses: changesets/action@v1
with:
Expand All @@ -41,5 +44,6 @@ jobs:
- name: Publish to PyPI
if: steps.changesets.outputs.published == 'true'
run: |
pip install twine
cd packages/mystmd-py
bash scripts/pypi-deploy.sh

0 comments on commit 1b0c649

Please sign in to comment.