Skip to content

Commit

Permalink
Set release title
Browse files Browse the repository at this point in the history
  • Loading branch information
ccremer committed Aug 5, 2023
1 parent b81d3ff commit 7923e8b
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:

- name: Setup npm publish
run:
echo "//registry.npmjs.org/:_authToken=${{ secrets. NPM_TOKEN }}" >> ./.npmrc
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> ./.npmrc

- name: Build
env:
Expand All @@ -43,7 +43,6 @@ jobs:
env:
GH_TOKEN: ${{ secrets.RELEASE_TOKEN }}
run: |
echo "PREVIOUS_VERSION=$(yq e '.version' -o yaml lerna.json)" >> $GITHUB_ENV
echo "SEMVER_TYPE=$(npx auto version)" >> $GITHUB_ENV
- name: Publish Packages
Expand All @@ -52,7 +51,7 @@ jobs:
SEMVER_TYPE: prepatch # just to avoid publishing real 2.0.0
run: |
npx lerna version ${{ env.SEMVER_TYPE }} --force-publish --ignore-changes --preid rc --yes --message "Bump versions [skip ci]"
npx lerna publish from-git --yes
#npx lerna publish from-git --yes
echo "NEXT_VERSION=$(yq e '.version' -o yaml lerna.json)" >> $GITHUB_ENV
- name: Build changelog
Expand All @@ -65,13 +64,11 @@ jobs:
# combining possible changelogs of all previous PreReleases in between.
# PreReleases show a partial changelog since last PreRelease.
ignorePreReleases: "${{ !contains(env.NEXT_VERSION, '-rc') }}"
fromTag: ${{ env.PREVIOUS_VERSION }}
toTag: ${{ env.NEXT_VERSION }}
env:
GITHUB_TOKEN: ${{ github.token }}

- name: Create Release
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
run: |
gh release create ${{ env.NEXT_VERSION }} --notes-file .github/release-notes.md --prerelease=${{ contains(env.NEXT_VERSION, '-rc') }}
gh release create "v${{ env.NEXT_VERSION }}" --notes-file .github/release-notes.md --prerelease=${{ contains(env.NEXT_VERSION, '-rc') }} --title "v${{ env.NEXT_VERSION }}"

0 comments on commit 7923e8b

Please sign in to comment.