forked from google/material-design-icons
-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: removing "v" prefix from releases
- Loading branch information
Showing
1 changed file
with
13 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,58 +23,58 @@ jobs: | |
GITHUB_TOKEN: ${{ github.token }} | ||
|
||
- name: Update package.json version | ||
if: ${{ steps.semantic_release_info.outputs.git_tag }} | ||
if: ${{ steps.semantic_release_info.outputs.version }} | ||
uses: jossef/action-set-json-field@v1 | ||
with: | ||
file: package.json | ||
field: version | ||
value: ${{ steps.semantic_release_info.outputs.git_tag }} | ||
value: ${{ steps.semantic_release_info.outputs.version }} | ||
|
||
- name: Update bower.json version | ||
if: ${{ steps.semantic_release_info.outputs.git_tag }} | ||
if: ${{ steps.semantic_release_info.outputs.version }} | ||
uses: jossef/action-set-json-field@v1 | ||
with: | ||
file: bower.json | ||
field: version | ||
value: ${{ steps.semantic_release_info.outputs.git_tag }} | ||
value: ${{ steps.semantic_release_info.outputs.version }} | ||
|
||
- name: Build font and docs | ||
if: ${{ steps.semantic_release_info.outputs.git_tag }} | ||
if: ${{ steps.semantic_release_info.outputs.version }} | ||
run: | | ||
npm ci | ||
npm run build | ||
npm run docs-build | ||
- name: Commit files | ||
if: ${{ steps.semantic_release_info.outputs.git_tag }} | ||
if: ${{ steps.semantic_release_info.outputs.version }} | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Action" | ||
git add -A | ||
git commit -m "docs(): bumping release ${{ steps.semantic_release_info.outputs.git_tag }}" | ||
git tag ${{ steps.semantic_release_info.outputs.git_tag }} | ||
git commit -m "docs(): bumping release ${{ steps.semantic_release_info.outputs.version }}" | ||
git tag ${{ steps.semantic_release_info.outputs.version }} | ||
- name: Push changes | ||
if: ${{ steps.semantic_release_info.outputs.git_tag }} | ||
if: ${{ steps.semantic_release_info.outputs.version }} | ||
uses: ad-m/[email protected] | ||
with: | ||
github_token: ${{ github.token }} | ||
tags: true | ||
|
||
- name: Create GitHub Release | ||
if: ${{ steps.semantic_release_info.outputs.git_tag }} | ||
if: ${{ steps.semantic_release_info.outputs.version }} | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
with: | ||
tag_name: ${{ steps.semantic_release_info.outputs.git_tag }} | ||
release_name: ${{ steps.semantic_release_info.outputs.git_tag }} | ||
tag_name: ${{ steps.semantic_release_info.outputs.version }} | ||
release_name: ${{ steps.semantic_release_info.outputs.version }} | ||
body: ${{ steps.semantic_release_info.outputs.notes }} | ||
draft: false | ||
prerelease: false | ||
|
||
- name: Publish to npm | ||
if: ${{ steps.semantic_release_info.outputs.git_tag }} | ||
if: ${{ steps.semantic_release_info.outputs.version }} | ||
uses: JS-DevTools/npm-publish@v1 | ||
with: | ||
token: ${{ secrets.NPM_TOKEN }} |