Skip to content

Commit

Permalink
Merge pull request #91 from ShellyDCMS/bump-ver-only-on-main
Browse files Browse the repository at this point in the history
Bump ver only on main
  • Loading branch information
ShellyDCMS committed May 25, 2024
2 parents ef2e094 + 4d13c71 commit ce8b7e8
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 8 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,6 @@ jobs:
node-version: 18
registry-url: https://registry.npmjs.org/
- run: npx yarn install --frozen-lockfile
- name: "Automated Version Bump"
uses: "phips28/gh-action-bump-version@master"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
version-type: "minor"
skip-tag: "true"
target-branch: "main"
- run: npm run build
- name: Build the Docs
run: |
Expand Down
33 changes: 33 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: "Bump Version"

on:
push:
branches:
- "main"

jobs:
bump-version:
name: "Bump Version on main"
runs-on: ubuntu-latest

steps:
- name: "Checkout source code"
uses: "actions/checkout@v2"
with:
ref: ${{ github.ref }}
- name: "cat package.json"
run: cat ./package.json
- name: "Automated Version Bump"
id: version-bump
uses: "phips28/gh-action-bump-version@master"
with:
tag-prefix: "v"
target-branch: "main"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: "cat package.json"
run: cat ./package.json
- name: "Output Step"
env:
NEW_TAG: ${{ steps.version-bump.outputs.newTag }}
run: echo "new tag $NEW_TAG"

0 comments on commit ce8b7e8

Please sign in to comment.