mirror of
https://github.com/garronej/ts-ci.git
synced 2025-11-30 21:43:05 +00:00
Link to changelog in release
This commit is contained in:
parent
5cd25fecef
commit
7b890b252d
1 changed files with 17 additions and 1 deletions
18
.github/workflows/publish.yaml
vendored
18
.github/workflows/publish.yaml
vendored
|
|
@ -70,12 +70,28 @@ jobs:
|
||||||
rm .npmrc
|
rm .npmrc
|
||||||
env:
|
env:
|
||||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
|
- name: Release commit message
|
||||||
|
id: id_rcm
|
||||||
|
run: |
|
||||||
|
if [ "$FROM_VERSION" = "" ]; then
|
||||||
|
then
|
||||||
|
echo "::set-output name=message::'🚀'"
|
||||||
|
else
|
||||||
|
echo "::set-output name=message::'📋 https://github.com/$OWNER/$REPO/blob/$REF/CHANGELOG.md'"
|
||||||
|
fi
|
||||||
|
env:
|
||||||
|
FROM_VERSION: ${{ github.event.client_payload.from_version }}
|
||||||
|
OWNER: ${{github.repository_owner}}
|
||||||
|
REPO: ${{github.event.client_payload.repo}}
|
||||||
|
REF: ${{github.event.client_payload.to_version}}
|
||||||
- name: Commit changes
|
- name: Commit changes
|
||||||
|
env:
|
||||||
|
COMMIT_MESSAGE: ${{steps.id_rcm.outputs.message}}
|
||||||
run: |
|
run: |
|
||||||
git config --local user.email "ts_ci@github.com"
|
git config --local user.email "ts_ci@github.com"
|
||||||
git config --local user.name "ts_ci"
|
git config --local user.name "ts_ci"
|
||||||
git add -A
|
git add -A
|
||||||
git commit -am "Moving dist files to root for shorter import statements."
|
git commit -am "$COMMIT_MESSAGE"
|
||||||
- name: Push changes
|
- name: Push changes
|
||||||
uses: ad-m/github-push-action@v0.5.0
|
uses: ad-m/github-push-action@v0.5.0
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue