2525 - macos-latest
2626 - windows-latest
2727 node-version :
28- - 16
29- - 18
30- - 20
28+ - " 16"
29+ - " 18"
30+ - " 20"
31+ - " 22"
32+ - " 24"
3133
3234 steps :
3335 - name : Checkout source
@@ -107,9 +109,11 @@ jobs:
107109 fail-fast : false
108110 matrix :
109111 node-version :
110- - 16
111- - 18
112- - 20
112+ - " 16"
113+ - " 18"
114+ - " 20"
115+ - " 22"
116+ - " 24"
113117
114118 services :
115119 verdaccio :
@@ -173,6 +177,21 @@ jobs:
173177 shell : bash
174178 run : ./e2e/01-setup-package.sh "${{ steps.setup.outputs.package }}" 0.0.3
175179
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 != 'patch' }}
191+ run : |
192+ echo "::error::Expected release type to be 'patch', got '${{ steps.action-publish-dry-before.outputs.type }}'"
193+ exit 1
194+
176195 - id : action-publish
177196 name : Publish a new version
178197 uses : ./
@@ -187,8 +206,8 @@ jobs:
187206 echo "::error::Expected release type to be 'patch', got '${{ steps.action-publish.outputs.type }}'"
188207 exit 1
189208
190- - id : action-publish-dry
191- name : Publish a dry run
209+ - id : action-publish-dry-after
210+ name : Publish a dry run after publish
192211 uses : ./
193212 with :
194213 registry : http://localhost:4873
@@ -197,9 +216,9 @@ jobs:
197216 dry-run : true
198217
199218 - name : Check release output
200- if : ${{ steps.action-publish-dry.outputs.type }}
219+ if : ${{ steps.action-publish-dry-after .outputs.type }}
201220 run : |
202- echo "::error::Expected release type to be '', got '${{ steps.action-publish-dry.outputs.type }}'"
221+ echo "::error::Expected release type to be '', got '${{ steps.action-publish-dry-after .outputs.type }}'"
203222 exit 1
204223
205224 deploy :
0 commit comments