Skip to content

Commit

Permalink
Merge pull request #48 from pwrdrvr/npm-version-ugh
Browse files Browse the repository at this point in the history
Model after another app
  • Loading branch information
huntharo authored Dec 12, 2021
2 parents 5fbc850 + a678e04 commit 8128a2b
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,19 @@ name: Release Package

on:
# Pull Request - Only when testing workflow
pull_request:
branches: [ main ]
workflow_dispatch:
# pull_request:
# branches: [ main ]
release:
types: [published]

# workflow_dispatch:

jobs:
release:
if: startsWith( github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
permissions:
contents: write
contents: read
outputs:
prSuffix: ${{ steps.prSuffix.outputs.prSuffix }}
packageVersion: ${{ steps.packageVersion.outputs.packageVersion }}
Expand Down Expand Up @@ -45,10 +49,14 @@ jobs:
# - name: Print npm version
# run: npm --version

- name: Bump Version by Patch - Push Tag to GH - Apply to Package.json
# - name: Bump Version by Patch - Push Tag to GH - Apply to Package.json
# run: |
# npm version patch
# git push —-tags

- name: Apply Version from Git Tag
run: |
npm version patch
git push —-tags
npm version from-git --no-git-tag-version
- name: Extract Package Version
run: |
Expand Down

0 comments on commit 8128a2b

Please sign in to comment.