Skip to content
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/workflows/publish-package-to-npmjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,17 @@ jobs:
path: ./dist/euid-sdk-${{ steps.version.outputs.package_version }}.js
outputs:
sdkVersion: ${{ steps.version.outputs.package_version }}
createNpmJsRelease:
id: github_release
uses: IABTechLab/uid2-shared-actions/actions/shared_create_releases@v2
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This shared action seems to only be for Docker and Maven releases - the main thing this repo is for is the JS SDK. I think the most straight-forward option is to call softprops/action-gh-release directly. Take a look at the last step here: https://github.com/IABTechLab/uid2-shared-actions/blob/v3.20/actions/shared_create_releases/action.yaml

I think if you omit the body parameter you'll get the auto-generated release notes from the included PRs, but I'm not certain - you might need an extra step.

needs: [incrementVersionNumber, build]
with:
is_release: true
new_version: ${{ needs.incrementVersionNumber.outputs.new_version }}
image_tag: ${{ needs.incrementVersionNumber.outputs.image_tag }}
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_platform: Docker
secrets: inherit
publish-package:
if: inputs.publish_to_npm
needs: [build, incrementVersionNumber]
Expand Down