Skip to content

Commit

Permalink
ci(dev): simplify dev release
Browse files Browse the repository at this point in the history
  • Loading branch information
Juveniel committed Feb 10, 2023
1 parent 9378d19 commit 237a5fd
Showing 1 changed file with 1 addition and 30 deletions.
31 changes: 1 addition & 30 deletions .github/workflows/publish_npm_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,37 +57,8 @@ jobs:
npm run sass:flat
npm run dist:swatches
- name: Determine correct version to publish
run: |
DEV_VERSION=$(npm info @progress/kendo-theme-default@dev version)
LATEST_VERSION=$(npm info @progress/kendo-theme-default@latest version)
VERSION=$(node ./scripts/semver-dev-inc.js --dev $DEV_VERSION --latest $LATEST_VERSION)
echo "Lerna should publish using $VERSION"
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: Prepare release
run: |
npx lerna version $VERSION --no-changelog --no-git-tag-version --no-push
git add .
git commit -m "chore(release): v$VERSION"
- name: Lerna publish
run: |
npx lerna publish from-package --dist-tag dev
- name: Push release commit
run: |
git pull --rebase origin develop:tmp-release-dev
git push origin develop:tmp-release-dev
- name: Mark checks as successful
run: |
commit=$(git rev-parse HEAD)
./build/mark-checks.sh $commit
npx lerna publish --canary --preid dev --dist-tag dev --allow-branch develop --force-publish --yes
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}

- name: Push release commit to develop
run: |
git push origin develop
git push --delete origin tmp-release-dev

0 comments on commit 237a5fd

Please sign in to comment.