Skip to content

Commit a8cc82a

Browse files
authored
Merge pull request #36 from vivshankar/feature/docs-update-action
fix: build and publish
2 parents 698af5e + f1dacac commit a8cc82a

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/publishpackage.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,19 @@ jobs:
2626
env:
2727
IS_PRERELEASE: ${{ github.event.release.prerelease }}
2828
run: |
29+
echo "Update npm"
30+
npm install -g npm@latest
31+
2932
TAG=${GITHUB_REF:10}
3033
echo "Processing tag: $TAG"
3134
MODULE=`echo "$TAG" | sed -e 's/@ibm-verify\/\([a-zA-Z].*\)@.*$/\1/'`
3235
# This step would fail if module is not a valid sdk
3336
cd ${GITHUB_WORKSPACE}/sdk/${MODULE}
37+
38+
echo "Building package"
39+
npm ci
40+
npm run build --if-present
41+
3442
if [ "$IS_PRERELEASE" = "true" ]; then
3543
echo "It's a pre-release."
3644
npm publish --dry-run --access public

0 commit comments

Comments
 (0)