Skip to content

Commit

Permalink
chore: update workflow actions to latest
Browse files Browse the repository at this point in the history
  • Loading branch information
byCedric committed Jan 4, 2023
1 parent 5a73f07 commit 3cecf2e
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 23 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 🏗 Setup repo
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: 🏗 Setup Node
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: 16.x
cache: yarn

- name: 📦 Install dependencies
run: yarn install --frozen-lockfile

Expand All @@ -40,14 +40,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 🏗 Setup repo
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: 🏗 Setup Node
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: 16.x
cache: yarn

- name: 📦 Install dependencies
run: yarn install --frozen-lockfile

Expand All @@ -61,10 +61,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 🏗 Setup repo
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: 🏗 Setup Node
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: 16.x
cache: yarn
Expand All @@ -74,7 +74,7 @@ jobs:

- name: 📦 Install semver
run: yarn add --dev semver

- name: 🕵️ Resolve major version
uses: actions/github-script@v6
id: version
Expand All @@ -84,9 +84,9 @@ jobs:
const semver = require('semver')
const { version } = require('./package.json')
return semver.major(version)
- name: 🧹 Clean repo
run: git clean . -xdf && git reset --hard HEAD && git pull && git fetch --tags

- name: 📋 Update tags
run: git tag --force v${{ steps.version.outputs.result }} && git push --force --tags
8 changes: 4 additions & 4 deletions .github/workflows/review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 🏗 Setup repo
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: 🏗 Setup Node
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: yarn
Expand All @@ -47,9 +47,9 @@ jobs:
git diff
exit 1
fi
- name: 🗂 Upload build
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
if: ${{ failure() && steps.diff.conclusion == 'failure' }}
with:
name: build
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: 🏗 Setup repo
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: 🏗 Setup Expo
uses: ./
Expand All @@ -53,7 +53,7 @@ jobs:
expo-cache: ${{ matrix.cache == 'with-cache' }}
packager: ${{ matrix.packager }}
token: ${{ secrets.EXPO_TOKEN }}

- name: 🧪 EAS installed
run: eas --version

Expand All @@ -67,23 +67,23 @@ jobs:
- name: 🧪 Expo authenticated
if: ${{ env.hasAuth == 'true' }}
run: expo whoami

preview-comment:
runs-on: ubuntu-latest
steps:
- name: 🏗 Setup repo
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: 🏗 Setup Expo
uses: ./
with:
eas-version: latest
expo-version: latest
token: ${{ secrets.EXPO_TOKEN }}

- name: 🏗 Setup project
run: expo init -t blank ./temp

- name: 🧪 Without commenting
if: ${{ env.hasAuth == 'true' }}
uses: ./preview-comment
Expand All @@ -94,12 +94,12 @@ jobs:

- name: 🧪 Output has content
if: ${{ env.hasAuth == 'true' }}
uses: actions/github-script@v5
uses: actions/github-script@v6
with:
script: |
const message = `${{ steps.preview.outputs.message }}`
if (!message) throw new Error('Message output is empty')
- name: 🧪 Comment on PR (github-token)
if: ${{ env.hasAuth == 'true' }}
uses: ./preview-comment
Expand Down

0 comments on commit 3cecf2e

Please sign in to comment.