build(deps-dev): bump typescript from 5.4.5 to 5.6.3 in /presenter #1080
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
name: "dreammall:release to github" | |
on: | |
push: | |
branches: | |
- master | |
permissions: | |
contents: write | |
jobs: | |
# JOB: GITHUB TAG LATEST VERSION ############################################# | |
############################################################################## | |
############################################################################## | |
github_tag: | |
name: Tag latest version on Github | |
runs-on: ubuntu-latest | |
steps: | |
########################################################################## | |
# CHECKOUT CODE ########################################################## | |
########################################################################## | |
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.1.7 | |
with: | |
fetch-depth: 0 # Fetch full History for changelog | |
########################################################################## | |
# SET ENVS ############################################################### | |
########################################################################## | |
- name: ENV - VERSION | |
run: echo "VERSION=$(node -p -e "require('./package.json').version")" >> $GITHUB_ENV | |
- name: ENV - BUILD_DATE | |
run: echo "BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> $GITHUB_ENV | |
- name: ENV - BUILD_VERSION | |
run: echo "BUILD_VERSION=${VERSION}-${GITHUB_RUN_NUMBER}" >> $GITHUB_ENV | |
- name: ENV - BUILD_COMMIT | |
run: echo "BUILD_COMMIT=${GITHUB_SHA}" >> $GITHUB_ENV | |
########################################################################## | |
# Push version tag to GitHub ############################################# | |
########################################################################## | |
# TODO: this will error on duplicate | |
#- name: package-version-to-git-tag | |
# uses: pkgdeps/git-tag-action@ef111413f44ebe5cc05994e7f5b5b9edaaada08d # v3.0.0 | |
# with: | |
# github_token: ${{ secrets.GITHUB_TOKEN }} | |
# github_repo: ${{ github.repository }} | |
# version: ${{ env.VERSION }} | |
# git_commit_sha: ${{ github.sha }} | |
# git_tag_prefix: "v" | |
########################################################################## | |
# Push build tag to GitHub ############################################### | |
########################################################################## | |
- name: package-version-to-git-tag + build number | |
uses: pkgdeps/git-tag-action@ef111413f44ebe5cc05994e7f5b5b9edaaada08d # v3.0.0 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
github_repo: ${{ github.repository }} | |
version: ${{ env.BUILD_VERSION }} | |
git_commit_sha: ${{ github.sha }} | |
git_tag_prefix: "b" | |
########################################################################## | |
# Push release tag to GitHub ############################################# | |
########################################################################## | |
- run: npm install | |
- name: generate changelog | |
run: npx --yes auto-changelog --commit-limit 0 --latest-version ${{ env.VERSION }} --unreleased-only | |
- name: package-version-to-git-release | |
continue-on-error: true # Will fail if tag exists | |
id: create_release | |
uses: actions/create-release@4c11c9fe1dcd9636620a16455165783b20fc7ea0 # v1.1.4 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token | |
with: | |
tag_name: ${{ env.VERSION }} | |
release_name: ${{ env.VERSION }} | |
body_path: ./CHANGELOG.md | |
draft: false | |
prerelease: false |