Skip to content

Commit

Permalink
ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Lokicoule committed Feb 6, 2025
1 parent 1d16362 commit e57d6da
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/actions/ci-setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ runs:
cache: 'pnpm'

- name: Install dependencies
run: pnpm install --frozen-lockfile
run: pnpm install --no-frozen-lockfile
shell: bash
34 changes: 29 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,31 @@ name: Release

on:
push:
branches:
- main
branches: ['main']
paths:
- '.changeset/**'
- 'CHANGELOG.md'
pull_request:
branches: ['main']
paths:
- '.changeset/**'
- 'CHANGELOG.md'
workflow_dispatch:

concurrency: ${{ github.workflow }}-${{ github.ref }}
permissions:
contents: write
pull-requests: write

concurrency:
group: release-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
coverage:
uses: ./.github/workflows/coverage.yml

release:
name: Release
needs: [coverage]
runs-on: ubuntu-latest
environment: production
steps:
Expand All @@ -18,7 +35,14 @@ jobs:
with:
fetch-depth: 0

- uses: ./.github/actions/ci-setup
- name: Setup Build Environment
uses: ./.github/actions/ci-setup

- name: Check for changesets
run: pnpm changeset status --since=main

- name: Build
run: pnpm run build

- name: Create Release Pull Request or Publish
id: changesets
Expand Down

0 comments on commit e57d6da

Please sign in to comment.