fix(ci): retrieve new version from package.json

This commit is contained in:
Christian Bromann
2025-05-05 15:32:25 -07:00
parent 87161a14a5
commit ecfff506b9
2 changed files with 7 additions and 2 deletions
@@ -39,7 +39,10 @@ runs:
git config user.email --global hi@ionicframework.com
shell: bash
- name: Update Version
run: npm version ${{ inputs.version }}
id: update_version
run: |
npm version ${{ inputs.version }}
echo "version=$(node -p "require('./package.json').version")" >> $GITHUB_OUTPUT
shell: bash
working-directory: ${{ inputs.working-directory }}
# - name: Run Build
@@ -64,7 +67,7 @@ runs:
git remote -v
git push origin main --tags
gh auth login --with-token ${{ inputs.ghToken }}
gh release create ${{ inputs.tag }} --title "v${{ inputs.tag }}" --generate-notes
gh release create ${{ steps.update_version.outputs.version }} --title "v${{ steps.update_version.outputs.version }}" --generate-notes
shell: bash
env:
GH_TOKEN: ${{ inputs.ghToken }}
+2
View File
@@ -26,6 +26,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.IONITRON_TOKEN }}
- name: Publish to NPM
uses: ./.github/workflows/actions/publish-npm
with: