Bump typescript from 5.3.3 to 5.4.2 #78
Workflow file for this run
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
# Action Name | |
name: Automated Releases | |
# Controls when the action will run | |
on: | |
push: | |
branches: | |
- master | |
tags: | |
- 'v*.*.*' | |
pull_request: | |
# Workflow Jobs | |
jobs: | |
# Build Job | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
# Step 1 - Checkout Code | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
# Step 2 - Extract Environment Variables | |
- name: Extract Environment Variables | |
uses: FranzDiebold/github-env-vars-action@v2 | |
# Step 3 - Setup NodeJS | |
- name: Setup NodeJS | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
registry-url: 'https://registry.npmjs.org' | |
# Step 4 - Install NPM Packages | |
- name: Install NPM Packages | |
run: npm ci | |
# Step 5 - Build the Action | |
- name: Build Action | |
run: npm run build | |
# Step 6 - Extract Package Version | |
- name: Extract Package Version | |
if: ${{ startsWith(github.ref, 'refs/tags/') }} | |
id: packageVersion | |
uses: martinbeentjes/npm-get-version-action@v1.3.1 | |
# Step 7 - Check Package Version | |
- name: Check Package Version | |
if: ${{ startsWith(github.ref, 'refs/tags/') && !endsWith(env.CI_REF_NAME, steps.packageVersion.outputs.current-version) }} | |
run: exit 1 | |
# Step 8 - Generate the Changelog | |
- name: Generate the Changelog | |
id: changelog | |
if: ${{ startsWith(github.ref, 'refs/tags/') }} | |
uses: metcalfc/changelog-generator@v4.2.0 | |
with: | |
mytoken: ${{ secrets.GITHUB_TOKEN }} | |
# Step 9 - Create GitHub Release | |
- name: Create GitHub Release | |
if: ${{ startsWith(github.ref, 'refs/tags/') }} | |
uses: ncipollo/release-action@v1 | |
with: | |
name: Release ${{ env.CI_REF_NAME }} | |
body: ${{ steps.changelog.outputs.changelog }} | |
tag: ${{ env.CI_REF_NAME }} | |
token: ${{ secrets.GITHUB_TOKEN }} | |
# Step 10 - Extract Major Version Number | |
- name: Extract Major Version Number | |
id: extractMajorVersion | |
if: ${{ startsWith(github.ref, 'refs/tags/') }} | |
run: | | |
tagName=$(echo ${{ env.CI_REF_NAME }} | cut -d . -f 1) | |
echo "tagName=$tagName" >> $GITHUB_OUTPUT | |
# Step 11 - Configure Git Metadata | |
- name: Configure Git Metadata | |
if: ${{ startsWith(github.ref, 'refs/tags/') }} | |
run: | | |
git config user.name github-actions | |
git config user.email github-actions@github.com | |
# Step 12 - Tag New Major Version | |
- name: Tag New Major Version | |
if: ${{ startsWith(github.ref, 'refs/tags/') }} | |
run: git tag -f ${{ steps.extractMajorVersion.outputs.tagName }} ${{ env.CI_REF_NAME }} | |
# Step 13 - Push New Major Version Tag | |
- name: Push New Major Version Tag | |
if: ${{ startsWith(github.ref, 'refs/tags/') }} | |
run: git push origin ${{ steps.extractMajorVersion.outputs.tagName }} --force |