Skip to content
GitHub Action to update major version tags based on semver for GitHub Actions
TypeScript JavaScript
Use this GitHub Action with your project

Add this Action to an existing workflow or create a new one.

View on Marketplace
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/workflows 💚 Use v1 instead of master Jan 3, 2020
dist 🎉 Update major version tag Jan 3, 2020
src 🎉 Introduce TypeScript Jan 11, 2020
tests 🎉 Introduce TypeScript Jan 11, 2020
.eslintrc.js 🎉 Introduce TypeScript Jan 11, 2020
.gitignore 🎉 Introduce TypeScript Jan 11, 2020
LICENSE 📝 Fix License Jan 2, 2020
README.md 📝 Add development document Jan 4, 2020
action.yml 🎉 Update major version tag Jan 3, 2020
package-lock.json ⬆️ Bump husky from 4.0.10 to 4.2.0 Jan 22, 2020
package.json
tsconfig.json 🎉 Introduce TypeScript Jan 11, 2020

README.md

GitHub Action: Update Major Version Tag

Test Release License

This GitHub Action updates major version tags (e.g. v1, v2) when semantic versioning tag is pushed. If v1.2.3 tag is pushed, it updates v1 tag. It works well with GitHub Action versioning.

Usage

Prerequisites

Create a workflow .yml file in your .github/workflows directory. An example workflow is available below. For more information, reference the GitHub Help Documentation for Creating a workflow file.

Inputs

  • github_token: GitHub Token to use GitHub APIs. You do not need to create your own token, set the token provided by Actions for this.

Example

name: Update Major Version Tag

on:
  push:
    tags:
      - "v*"

jobs:
  update-majorver:
    name: Update Major Version Tag
    runs-on: ubuntu-latest
    steps:
      - uses: nowactions/update-majorver@v1
        with:
          github_token: ${{ secrets. GITHUB_TOKEN }}

Development

Install dependencies.

npm install

Run tests.

npm test

Release

  • Bump up the version in package.json
  • Commit the changes
  • Run npm run release
You can’t perform that action at this time.