This GitHub Action creates a tag for the frontend project. It is designed to be used within a workflow to automate the tagging process.
This action is developed by Stryda.
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.
The action provides the following output:
tag
: The newly created tag.
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 }}"