Skip to content

Commit

Permalink
chore: set major tag version to release commit
Browse files Browse the repository at this point in the history
  • Loading branch information
byCedric committed Mar 3, 2022
1 parent bb7c723 commit b516013
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,4 @@ jobs:
return semver.major(version)
- name: 📋 Update tags
run: git tag --force v${{ steps.version.outputs.result }} && git push --force --tags
run: git fetch --tags && git pull && git tag --force v${{ steps.version.outputs.result }} && git push --force --tags
11 changes: 7 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ concurrency:
group: test-${{ github.ref }}
cancel-in-progress: true

env:
hasAuth: ${{ !!secrets.EXPO_TOKEN }}

jobs:
setup:
strategy:
Expand Down Expand Up @@ -41,14 +44,14 @@ jobs:
run: eas --version

- name: 🧪 EAS authenticated
if: ${{ secrets.EXPO_TOKEN }}
if: ${{ env.hasAuth }}
run: eas whoami

- name: 🧪 Expo installed
run: expo --version

- name: 🧪 Expo authenticated
if: ${{ secrets.EXPO_TOKEN }}
if: ${{ env.hasAuth }}
run: expo whoami

preview-comment:
Expand Down Expand Up @@ -82,7 +85,7 @@ jobs:
if (!message) throw new Error('Message output is empty')
- name: 🧪 Comment on PR (github-token)
if: ${{ secrets.EXPO_TOKEN }}
if: ${{ env.hasAuth }}
uses: ./preview-comment
env:
EXPO_TEST_GITHUB_PULL: 149
Expand All @@ -91,7 +94,7 @@ jobs:
channel: test

- name: 🧪 Comment on PR (GITHUB_TOKEN)
if: ${{ secrets.EXPO_TOKEN }}
if: ${{ env.hasAuth }}
uses: ./preview-comment
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit b516013

Please sign in to comment.