mirror of
https://github.com/ionic-team/ionicons.git
synced 2026-12-01 16:56:28 +01:00
fix(ci): retrieve new version from package.json
This commit is contained in:
@@ -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 }}
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user