File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3232 run : npm run ci
3333
3434 - name : Set package version
35- run : npm version "${{ inputs.version }}" --no-git-tag-version
35+ run : npm version "${{ inputs.version }}" --no-git-tag-version --allow-same-version
3636
3737 - name : Build
3838 run : npm run build
4848 git config user.name "github-actions[bot]"
4949 git config user.email "github-actions[bot]@users.noreply.github.com"
5050 git add package.json package-lock.json
51- git commit -m "release: v${{ inputs.version }}"
52- git tag "v${{ inputs.version }}"
51+ git diff --cached --quiet && echo "Nothing to commit" || git commit -m "release: v${{ inputs.version }}"
52+ git tag "v${{ inputs.version }}" 2>/dev/null || echo "Tag already exists"
5353 git push origin HEAD
54- git push origin "v${{ inputs.version }}"
54+ git push origin "v${{ inputs.version }}" 2>/dev/null || echo "Tag already pushed"
You can’t perform that action at this time.
0 commit comments