generated from Tinkoff/angular-open-source-starter
-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: update some legacy configs inside
create-release.yml
- Loading branch information
1 parent
f5b71d4
commit d06c228
Showing
1 changed file
with
11 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,34 +25,31 @@ jobs: | |
env: | ||
IS_DRY_MODE: ${{ github.event.inputs.dryRun == 'true' }} | ||
steps: | ||
- name: Fetch from origin repo | ||
uses: actions/[email protected] | ||
- uses: actions/[email protected] | ||
with: | ||
fetch-depth: 0 | ||
persist-credentials: false | ||
ref: ${{ github.head_ref }} | ||
token: ${{ secrets.TAIGA_FAMILY_BOT_PAT }} | ||
|
||
- name: Setup Node.js and Cache | ||
uses: taiga-family/ci/actions/[email protected] | ||
- uses: taiga-family/ci/actions/[email protected] | ||
- uses: taiga-family/ci/actions/[email protected] | ||
with: | ||
token: ${{ secrets.TAIGA_FAMILY_BOT_PAT }} | ||
|
||
- name: Run release | ||
id: run-release | ||
run: | | ||
git config --global user.name "tinkoff-bot" | ||
git config --global user.email "[email protected]" | ||
git config --global push.followTags true | ||
npm run release -- \ | ||
--release-as ${{ github.event.inputs.mode }} \ | ||
--dry-run ${{ github.event.inputs.dryRun }} | ||
npm run release -- \ | ||
--release-as ${{ github.event.inputs.mode }} \ | ||
--dry-run ${{ github.event.inputs.dryRun }} | ||
echo "new_version=$(node -p "require('./package.json').version")" >> $GITHUB_OUTPUT | ||
- name: Generate Release Body | ||
id: generate_body | ||
run: | | ||
npx extract-changelog-release > RELEASE_BODY.md | ||
echo "tag_name=$(git describe HEAD --abbrev=0)" >> $GITHUB_OUTPUT | ||
echo "tag_name=$(git describe --abbrev=0 --tags)" >> $GITHUB_OUTPUT | ||
- id: get-pr-body | ||
run: | | ||
|
@@ -94,7 +91,7 @@ jobs: | |
- name: Create GitHub Release | ||
if: ${{ env.IS_DRY_MODE == 'false' }} | ||
uses: ncipollo/release-action@v1 | ||
uses: ncipollo/release-action@v1.13.0 | ||
with: | ||
name: Release ${{ steps.generate_body.outputs.tag_name }} | ||
tag: ${{ steps.generate_body.outputs.tag_name }} | ||
|