Skip to content

Commit

Permalink
Fix release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Link- committed Apr 29, 2021
1 parent e18143e commit 83a8a65
Showing 1 changed file with 16 additions and 13 deletions.
29 changes: 16 additions & 13 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
name: Build & Release

on:
push:
tags:
- '*.*.*'
workflow_dispatch:
# Inputs the workflow accepts.
inputs:
version:
description: 'Release version'
required: true

jobs:
build-and-release:
Expand All @@ -21,25 +24,25 @@ jobs:
run: |
npm run build
- name: Get tag name
id: tag_extraction
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}
- name: Push new build
uses: EndBug/add-and-commit@a3adef035a1381dcf888c90b847240e2ddb9e008
with:
author_name: Link-
author_email: [email protected]
message: 'Update build'
add: 'bin/starred_search'

- name: Update version
env:
RELEASE_VERSION: ${{ steps.tag_extraction.outputs.tag }}
run: |
echo $RELEASE_VERSION
npm version $RELEASE_VERSION --no-git-tag-version
echo ${{ steps.tag_extraction.outputs.tag }}
npm version ${{ github.event.inputs.name }}
- name: Push changes and tags
- name: Push new version and tag
uses: EndBug/add-and-commit@a3adef035a1381dcf888c90b847240e2ddb9e008
with:
author_name: Link-
author_email: [email protected]
message: 'Update version'
add: '["package.json", "bin/starred_search"]'
add: 'package.json'

- name: Release
uses: JS-DevTools/npm-publish@0f451a94170d1699fd50710966d48fb26194d939
Expand Down

0 comments on commit 83a8a65

Please sign in to comment.