Skip to content

This generate our tag with calver + semver support and helps us decide when to generate a prod tag with our single branch setup.

Notifications You must be signed in to change notification settings

g-loot/frontend-tag-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Frontend Tag Action

This GitHub Action creates a tag for the frontend project. It is designed to be used within a workflow to automate the tagging process.

Author

This action is developed by Stryda.

Inputs

The action requires the following inputs:

  • branch: The branch to tag.
  • production: Indicates whether it is a production release.

Both inputs are required for the action to run successfully.

Outputs

The action provides the following output:

  • tag: The newly created tag.

Usage

To use this action, include the following code in your workflow file:

name: Frontend Tag Workflow

on:
  push:
    branches:
      - main

jobs:
  tag_frontend:
    runs-on: ubuntu-latest

    steps:
      - name: Checkout Repository
        uses: actions/checkout@v3

      - name: Tag Frontend
        id: tag_frontend
        uses: stryda/frontend-tag-action@master
        with:
          branch: ${{ github.ref }}
          production: true
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

      - name: Display Tag
        run: echo "The newly created tag is ${{ steps.tag_frontend.outputs.tag }}"

About

This generate our tag with calver + semver support and helps us decide when to generate a prod tag with our single branch setup.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published