Skip to content

Commit ce77993

Browse files
moved release to after build and added build dependency
1 parent cb23e32 commit ce77993

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

.github/workflows/publish-package-to-npmjs.yml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,6 @@ jobs:
3232
with:
3333
release_type: ${{ inputs.release_type }}
3434
secrets: inherit
35-
createNpmJsRelease:
36-
uses: IABTechLab/uid2-shared-actions/actions/shared_create_releases/action.yaml
37-
needs: incrementVersionNumber
38-
with:
39-
is_release: true
40-
new_version: ${{ needs.incrementVersionNumber.outputs.new_version }}
41-
image_tag: ${{ needs.incrementVersionNumber.outputs.image_tag }}
42-
github_token: ${{ secrets.GITHUB_TOKEN }}
43-
publish_platform: Docker
44-
secrets: inherit
4535
build:
4636
runs-on: ubuntu-latest
4737
needs: [incrementVersionNumber]
@@ -78,6 +68,17 @@ jobs:
7868
path: ./dist/euid-sdk-${{ steps.version.outputs.package_version }}.js
7969
outputs:
8070
sdkVersion: ${{ steps.version.outputs.package_version }}
71+
createNpmJsRelease:
72+
id: github_release
73+
uses: IABTechLab/uid2-shared-actions/actions/shared_create_releases@v2
74+
needs: [incrementVersionNumber, build]
75+
with:
76+
is_release: true
77+
new_version: ${{ needs.incrementVersionNumber.outputs.new_version }}
78+
image_tag: ${{ needs.incrementVersionNumber.outputs.image_tag }}
79+
github_token: ${{ secrets.GITHUB_TOKEN }}
80+
publish_platform: Docker
81+
secrets: inherit
8182
publish-package:
8283
if: inputs.publish_to_npm
8384
needs: [build, incrementVersionNumber]

0 commit comments

Comments
 (0)