Skip to content

Commit

Permalink
ci: update some legacy configs inside create-release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
nsbarsukov committed Sep 20, 2023
1 parent f5b71d4 commit d06c228
Showing 1 changed file with 11 additions and 14 deletions.
25 changes: 11 additions & 14 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down Expand Up @@ -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 }}
Expand Down

0 comments on commit d06c228

Please sign in to comment.