-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Api client workflow fails to deploy first version cause calculating new version is failing
Please update 'Publish apiclient' step to have default version fallback i case of 404 error:
#other steps ....
- name: Publish apiclient
run: |
cd .api-client
echo 'authenticating'
echo "@softcery:registry=https://npm.pkg.github.com/" > ~/.npmrc
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" >> ~/.npmrc
echo 'calculating new version'
# changed line (defaulting to 0.0.1)
LAST_VERSION=$(npm view ${{ env.NPM_PACKAGE }} version || echo "0.0.1")
NEW_VERSION=$(npx semver $LAST_VERSION -i minor)
echo 'setting new version'
npm version $NEW_VERSION
echo 'publishing'
npm publishReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels