Skip to content

Commit

Permalink
ci: add release job
Browse files Browse the repository at this point in the history
  • Loading branch information
zirkelc committed Oct 7, 2024
1 parent 7103627 commit 24a7756
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 31 deletions.
25 changes: 24 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,27 @@ jobs:
if: ${{ steps.install.conclusion == 'success' }}
uses: davelosert/vitest-coverage-report-action@v2
with:
vite-config-path: vitest.root.ts
vite-config-path: vitest.root.ts

release:
name: Release
needs: [lint, test]
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} # Only run on main push
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup and Install
id: install
uses: ./.github/actions/setup-and-install
with:
node-version: 20

- name: Publish
id: changesets
uses: changesets/action@v1
with:
publish: pnpm release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
30 changes: 0 additions & 30 deletions .github/workflows/release.yml

This file was deleted.

0 comments on commit 24a7756

Please sign in to comment.