-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
9 additions
and
14 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 |
---|---|---|
|
@@ -30,34 +30,29 @@ jobs: | |
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-node- | ||
- name: Node ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: yarn install and run build | ||
# Runs a set of commands using the runners shell | ||
run: | | ||
# npm install yarn | ||
# todo: delete lock file | ||
yarn install | ||
yarn run build:prod | ||
yarn run build:prod | ||
#create new tag only on push event | ||
- name: Bump version and push tag | ||
id: tag_version | ||
if: ${{ github.event_name == 'push' }} | ||
uses: mathieudutour/[email protected] | ||
with: | ||
github_token: ${{ secrets.TOKEN }} | ||
|
||
#- name: Create a GitHub release | ||
# uses: actions/create-release@v1 | ||
# env: | ||
# GITHUB_TOKEN: ${{ secrets.TOKEN }} | ||
# with: | ||
# tag_name: ${{ steps.tag_version.outputs.new_tag }} | ||
# release_name: Release ${{ steps.tag_version.outputs.new_tag }} | ||
# body: ${{ steps.tag_version.outputs.changelog }} | ||
github_token: ${{ secrets.TOKEN }} | ||
|
||
#create new release only on push event | ||
- name: Push Build to Releases | ||
if: ${{ github.event_name == 'push' }} | ||
uses: ncipollo/release-action@v1 | ||
|