diff --git a/.github/workflows/build-and-deploy.yml b/.github/workflows/build-and-deploy.yml index 2e2bef8b9cd8..c5a7693a5a0e 100644 --- a/.github/workflows/build-and-deploy.yml +++ b/.github/workflows/build-and-deploy.yml @@ -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 "action@github.com" 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/github-push-action@v0.6.0 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 }}