Skip to content

Commit

Permalink
fix: make pipeline faster
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-bromann committed Feb 14, 2024
1 parent bf63193 commit ff6f05f
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,9 @@ permissions:
pull-requests: write

jobs:
build:
uses: ./.github/workflows/ci.yml

release-pr:
runs-on: ubuntu-latest
if: ${{ github.event_name == 'workflow_dispatch' }}
needs: [build]
steps:
- uses: google-github-actions/release-please-action@v4
id: release
Expand All @@ -29,21 +25,31 @@ jobs:
release:
runs-on: ubuntu-latest
if: ${{ contains(github.event.head_commit.message, 'release expense-action')}}
needs: [build]
steps:
- uses: google-github-actions/release-please-action@v4
id: release
with:
config-file: .github/release/config.json
manifest-file: .github/release/manifest.json
- uses: actions/checkout@v3

- uses: actions/checkout@v4
with:
fetch-depth: 0
if: ${{ steps.release.outputs.release_created }}

- uses: actions/download-artifact@v3
- name: Setup Node.js
uses: actions/setup-node@v4
with:
name: dist
node-version-file: .nvmrc
cache: npm
if: ${{ steps.release.outputs.release_created }}

- name: Install Dependencies
run: npm ci
if: ${{ steps.release.outputs.release_created }}

- name: Build
run: npm run package
if: ${{ steps.release.outputs.release_created }}

- name: Publish to GitHub
Expand Down

0 comments on commit ff6f05f

Please sign in to comment.