Skip to content

Commit

Permalink
try vars
Browse files Browse the repository at this point in the history
  • Loading branch information
davla committed Sep 28, 2023
1 parent 4fbbd39 commit f7f9014
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/test-and-publish.yml
Expand Up @@ -16,6 +16,7 @@ jobs:
env:
unit-test-results-path: unit-test-results.json
end-to-end-test-results-path: end-to-end-test-results.json
is-done-branch: ${{ startsWith(github.ref_name, 'done') }}

steps:
- name: Checkout repository code
Expand Down Expand Up @@ -62,7 +63,7 @@ jobs:
publish:
needs: test
runs-on: ubuntu-latest
if: github.ref_name == 'main' || startsWith(github.ref_name, 'done')
if: github.ref_name == 'main' || env.is-done-branch
name: Publish

env:
Expand All @@ -84,7 +85,7 @@ jobs:
run: npm ci

- name: Check release prerequisites
if: startsWith(github.ref_name, 'done')
if: env.is-done-branch
run: npx semantic-release --dry-run

- name: Release
Expand Down

0 comments on commit f7f9014

Please sign in to comment.