Skip to content

Commit

Permalink
Publish package after creating release
Browse files Browse the repository at this point in the history
  • Loading branch information
adhamu committed Jan 13, 2023
1 parent 3116946 commit 81ffba6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,18 +59,6 @@ jobs:
- name: Build
run: yarn build

- name: Publish to Registry
run: |
pkg_version=${{ steps.env_vars.outputs.NEW_VERSION }}
branch=${{ steps.env_vars.outputs.BRANCH }}
if [[ $branch != "main" ]]; then
yarn version --new-version "$pkg_version-beta$GITHUB_RUN_NUMBER" --no-git-tag-version
yarn publish --tag beta --access public
else
yarn publish --access public
fi
- name: Create Changeset
run: |
CHANGELOG=$(git --no-pager log ${{ steps.env_vars.outputs.PUBLISHED_VERSION }}..HEAD --format="%C(auto)%h %s")
Expand All @@ -92,3 +80,15 @@ jobs:
body: "${{ steps.changeset.outputs.RELEASE_NOTES }}\n\n**Full Changelog**: https://github.com/adhamu/arge/compare/${{ steps.env_vars.outputs.PUBLISHED_VERSION }}...${{ steps.env_vars.outputs.NEW_VERSION }}"
draft: false
prerelease: false

- name: Publish to Registry
run: |
pkg_version=${{ steps.env_vars.outputs.NEW_VERSION }}
branch=${{ steps.env_vars.outputs.BRANCH }}
if [[ $branch != "main" ]]; then
yarn version --new-version "$pkg_version-beta$GITHUB_RUN_NUMBER" --no-git-tag-version
yarn publish --tag beta --access public
else
yarn publish --access public
fi
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "arge",
"version": "1.5.0",
"version": "1.5.1",
"description": "A simple utility to parse command line arguments and flags",
"keywords": [
"argv",
Expand Down

0 comments on commit 81ffba6

Please sign in to comment.