diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d2a24799..57055b6e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 @@ -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 @@ -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 @@ -74,7 +74,7 @@ jobs: - name: ๐Ÿ“ฆ Install semver run: yarn add --dev semver - + - name: ๐Ÿ•ต๏ธ Resolve major version uses: actions/github-script@v6 id: version @@ -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 diff --git a/.github/workflows/review.yml b/.github/workflows/review.yml index dbe33602..0428cce6 100644 --- a/.github/workflows/review.yml +++ b/.github/workflows/review.yml @@ -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 @@ -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 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6dad4a00..ccc80600 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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: ./ @@ -53,7 +53,7 @@ jobs: expo-cache: ${{ matrix.cache == 'with-cache' }} packager: ${{ matrix.packager }} token: ${{ secrets.EXPO_TOKEN }} - + - name: ๐Ÿงช EAS installed run: eas --version @@ -67,12 +67,12 @@ 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: ./ @@ -80,10 +80,10 @@ jobs: 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 @@ -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