Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
merrycoder committed Jan 10, 2025
1 parent 9db94da commit 289ce80
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion .github/workflows/release-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@ jobs:
registry-url: 'https://npm.pkg.github.com'
# Defaults to the user or organization that owns the workflow file
scope: '@qualipool'
- run: echo "github.event.inputs.semver ${{ github.event.inputs.semver }}"

######
## Calculate next version based on user semver input
## Update version and create tag and push to main
######
- name: Calculate next version based on semver input
id: next_version
uses: zwaldowski/semver-release-action@a6a8309186ccf60c52ea2463a723c78d3b924577 # v4
Expand All @@ -32,6 +36,23 @@ jobs:
per_branch: true
bump: ${{ github.event.inputs.semver }}
github_token: ${{ github.token }}

- name: Bump version in package.json
uses: reedyuk/npm-version@15e0d016f632fe38bbb704910b8359f23262deb7 # 1.2.2
with:
version: ${{ steps.next_version.outputs.version }}

- name: Commit files, create tag and push to remote
uses: EndBug/add-and-commit@a94899bca583c204427a224a7af87c02f9b325d5 # v9.1.4
with:
message: ${{ steps.next_version.outputs.version }}
default_author: user_info
push: 'true'
tag: v${{ steps.next_version.outputs.version }}

######
## Build package and publish it to GitHub packages
######
- run: npm ci
- run: npm publish
env:
Expand Down

0 comments on commit 289ce80

Please sign in to comment.