Skip to content

Commit

Permalink
ci: 🎡 WIP package publishing in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
dkolba committed Jul 26, 2022
1 parent 77fb82f commit bb05356
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,18 @@ jobs:
- name: 🔄 Init Cache
uses: ./.github/actions/npm-cache

- name: Publish stable packages
- name: Set the Env
run: |
SEMVER_VERSION=$(npx find-versions-cli ${{ github.event.release.tag_name }})
VALID_SEMVER_VERSION=$(node scripts/version-helper.js $SEMVER_VERSION)
echo "Semver stable version unclean $SEMVER_VERSION"
echo "Semver stable version valid $VALID_SEMVER_VERSION"
echo "VALID_SEMVER_VERSION=$(echo $VALID_SEMVER_VERSION)" >> $GITHUB_ENV
- name: Publish stable packages
run: |
echo "version is:"
echo ${{env.VALID_SEMVER_VERSION }}
npm version --no-git-tag-version ${{ env.VALID_SEMVER_VERSION }} --workspace=@ci-cd/abcd
npm run publish:abcd
Expand Down

0 comments on commit bb05356

Please sign in to comment.