Skip to content

Commit

Permalink
fix: removing "v" prefix from releases
Browse files Browse the repository at this point in the history
  • Loading branch information
jossef committed Feb 19, 2022
1 parent 34efd08 commit 98aa0a6
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 98aa0a6

Please sign in to comment.