Skip to content

Commit

Permalink
Merge pull request #20 from elek-io/finalize-cd
Browse files Browse the repository at this point in the history
Running changesets only on ubuntu runner and pushing the build artifa…
  • Loading branch information
Nils-Kolvenbach authored Oct 12, 2024
2 parents 0146aef + 9b429ca commit c41a7af
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,16 @@ jobs:
run: npm install
# - name: Run linter
# run: npm run lint
- name: Create pull request or push artifacts to draft release
- name: Create or update pull request
if: job.runs-on == 'ubuntu-22.04'
uses: changesets/action@v1
with:
title: 'WIP: Release x.x.x'
commit: Release new version
publish: npm run build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Publish
if: steps.changesets.outputs.hasChangesets == 'false'
run: npm run build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit c41a7af

Please sign in to comment.