Skip to content

Commit

Permalink
test for dev version sync false fails when dev version produces no gi…
Browse files Browse the repository at this point in the history
…t changes
  • Loading branch information
pirog committed May 25, 2024
1 parent 79fd82a commit 1454a26
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pr-basic-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
pull_request:

jobs:
test:
basic-tests:
runs-on: ${{ matrix.os }}
env:
term: xterm
Expand Down
37 changes: 37 additions & 0 deletions .github/workflows/pr-dev-version-sync-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Basic Tests

on:
pull_request:

jobs:
dev-version-tests:
runs-on: ${{ matrix.os }}
env:
term: xterm
strategy:
fail-fast: false
matrix:
os:
- ubuntu-22.04
node-version:
- '20'

steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install node ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: npm
- name: Install deps and prep
run: |
npm clean-install
npm run prepare
- name: Export pkg.json version
run: echo "VERSION=$(node -p "require('./package.json').version")" >> $GITHUB_ENV
- name: Prepare release
uses: ./
with:
version: v${{ env.VERSION }}
sync: false
2 changes: 1 addition & 1 deletion .github/workflows/pr-options-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
pull_request:

jobs:
test:
options-test:
runs-on: ${{ matrix.os }}
env:
term: xterm
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
## {{ UNRELEASED_VERSION }} - [{{ UNRELEASED_DATE }}]({{ UNRELEASED_LINK }})

* Fixed issue where `version: dev` would fail when it produces no `git` changes

## v3.3.1 - [May 8, 2024](/~https://github.com/lando/prepare-release-action/releases/tag/v3.3.1)

* Fixed issue with `update-files-header` newline spacing
Expand Down

0 comments on commit 1454a26

Please sign in to comment.