@@ -177,6 +177,21 @@ jobs:
177177 shell : bash
178178 run : ./e2e/01-setup-package.sh "${{ steps.setup.outputs.package }}" 0.0.3
179179
180+ - id : action-publish-dry-before
181+ name : Publish a dry run before publish
182+ uses : ./
183+ with :
184+ registry : http://localhost:4873
185+ package : ${{ steps.setup.outputs.package }}/package.json
186+ token : ${{ steps.setup.outputs.token }}
187+ dry-run : true
188+
189+ - name : Check release output
190+ if : ${{ steps.action-publish-dry-before.outputs.type }}
191+ run : |
192+ echo "::error::Expected release type to be '', got '${{ steps.action-publish-dry.outputs.type }}'"
193+ exit 1
194+
180195 - id : action-publish
181196 name : Publish a new version
182197 uses : ./
@@ -191,8 +206,8 @@ jobs:
191206 echo "::error::Expected release type to be 'patch', got '${{ steps.action-publish.outputs.type }}'"
192207 exit 1
193208
194- - id : action-publish-dry
195- name : Publish a dry run
209+ - id : action-publish-dry-after
210+ name : Publish a dry run after publish
196211 uses : ./
197212 with :
198213 registry : http://localhost:4873
@@ -201,7 +216,7 @@ jobs:
201216 dry-run : true
202217
203218 - name : Check release output
204- if : ${{ steps.action-publish-dry.outputs.type }}
219+ if : ${{ steps.action-publish-dry-after .outputs.type }}
205220 run : |
206221 echo "::error::Expected release type to be '', got '${{ steps.action-publish-dry.outputs.type }}'"
207222 exit 1
0 commit comments