Skip to content

Commit

Permalink
cleanup workflow file
Browse files Browse the repository at this point in the history
  • Loading branch information
spaduret authored Jun 10, 2021
1 parent 403f761 commit f82efef
Showing 1 changed file with 9 additions and 14 deletions.
23 changes: 9 additions & 14 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f82efef

Please sign in to comment.