Skip to content

Commit

Permalink
Dont tag using yarn as we did that via github
Browse files Browse the repository at this point in the history
  • Loading branch information
MiniDigger committed Nov 30, 2019
1 parent 4ddbd26 commit 88ef2f4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/Publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Publish

on:
release:
types: [created]
types: [published]

jobs:
publish:
Expand All @@ -22,10 +22,11 @@ jobs:
- name: Install
run: yarn --frozen-lockfile --non-interactive

- name: Setup GIT
- name: Setup git and yarn
run: |
git config user.email "admin@minidigger.me"
git config user.name "MiniDigger"
yarn config set version-git-tag false
- name: Bump version
env:
Expand All @@ -34,7 +35,8 @@ jobs:
version=$(echo "$GITHUB_REF" | sed "s/refs\/tags\/v//")
echo "Bumping version to $version"
yarn version --new-version $version
git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$GITHUB_REPOSITORY" --tags
git commit -m "Bump version to $version"
git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$GITHUB_REPOSITORY"
- name: Publish
run: yarn publish
Expand Down

0 comments on commit 88ef2f4

Please sign in to comment.