Skip to content

Commit

Permalink
Update bump-version.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Cdimock authored Jun 27, 2023
1 parent 6d20f5a commit f4d7db0
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/bump-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,19 @@ jobs:
fetch-depth: 0
ref: master

- name: Determine node version
id: node_version
run: echo ::set-output name=version::$(node -p "require('./package.json').engines.node")
- name: Determine versions
id: version
run: |
echo ::set-output name=node::$(node -p "require('./package.json').engines.node")
echo ::set-output name=app_version::$(node -p "require('./package.json').version")
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: ${{ steps.node_version.outputs.version }}
node-version: ${{ steps.version.outputs.node }}

- name: Set current version number
if: steps.version.outputs.app_version != github.event.release.name
id: set_current_version
run: |
npm version ${{ github.event.release.name }} --force --no-git-tag-version
Expand Down

0 comments on commit f4d7db0

Please sign in to comment.