diff --git a/.github/workflows/actions/publish-npm/action.yml b/.github/workflows/actions/publish-npm/action.yml index e2b2e953..56640160 100644 --- a/.github/workflows/actions/publish-npm/action.yml +++ b/.github/workflows/actions/publish-npm/action.yml @@ -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 }} \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 78910ec9..15401bd6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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: