Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release: leather hackathon #6087

Merged
merged 14 commits into from
Jan 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/build-extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ concurrency:

jobs:
sha-hash:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
outputs:
SHORT_SHA: ${{ steps.short-sha.outputs.SHORT_SHA }}
steps:
Expand All @@ -19,7 +19,7 @@ jobs:

set-in-progress-message:
if: github.repository == 'leather-io/extension' && github.actor != 'dependabot[bot]'
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
needs:
- sha-hash
steps:
Expand All @@ -30,7 +30,7 @@ jobs:

build:
name: build-${{ matrix.target }}-extension
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
needs:
- sha-hash
strategy:
Expand Down Expand Up @@ -62,15 +62,15 @@ jobs:
PR_NUMBER: ${{ github.event.number }}
COMMIT_SHA: ${{ needs.sha-hash.outputs.SHORT_SHA }}

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
name: Upload ${{ matrix.target }} extension zip
with:
name: leather-${{ matrix.target }}-${{ needs.sha-hash.outputs.SHORT_SHA }}
path: dist

set-download-link:
if: github.repository == 'leather-io/extension' && github.actor != 'dependabot[bot]'
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
needs:
- sha-hash
- build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on: [pull_request]
jobs:
chromatic:
if: github.repository == 'leather-io/extension' && github.actor != 'dependabot[bot]'
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
with:
Expand Down
26 changes: 13 additions & 13 deletions .github/workflows/code-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

jobs:
lint-prettier:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/provision
Expand All @@ -17,7 +17,7 @@ jobs:
run: pnpm lint:prettier

lint-eslint:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/provision
Expand All @@ -26,7 +26,7 @@ jobs:
run: pnpm lint:eslint

lint-filename:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/provision
Expand All @@ -35,7 +35,7 @@ jobs:
run: pnpm lint:filename

lint-commit:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -45,7 +45,7 @@ jobs:
uses: wagoid/commitlint-github-action@v4

lint-deps:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/provision
Expand All @@ -54,7 +54,7 @@ jobs:
run: pnpm lint:deps

lint-message-schema:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/provision
Expand All @@ -63,7 +63,7 @@ jobs:
run: pnpm lint:remote-wallet-config

lint-unused-exports:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/provision
Expand All @@ -72,7 +72,7 @@ jobs:
run: pnpm lint:unused-exports

lint-firefox-build:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/provision
Expand All @@ -84,7 +84,7 @@ jobs:
- run: pnpm web-ext lint

locked-versions:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/provision
Expand All @@ -93,7 +93,7 @@ jobs:
uses: ./.github/actions/check-version-lock

audit:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/provision
Expand All @@ -102,7 +102,7 @@ jobs:
run: pnpm audit-ci --high --skip-dev

typecheck:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/provision
Expand All @@ -111,7 +111,7 @@ jobs:
run: pnpm typecheck

test-unit:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/provision
Expand All @@ -120,7 +120,7 @@ jobs:
run: pnpm test:unit

test-build:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/provision
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/contributor-advice.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:

jobs:
fork-detection:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
permissions:
issues: write
# When a fork
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/create-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ env:

jobs:
semantic-release:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
outputs:
new_release_published: ${{ steps.semantic.outputs.new_release_published }}
new_release_version: ${{ steps.semantic.outputs.new_release_version }}
Expand Down Expand Up @@ -61,7 +61,7 @@ jobs:
echo ${{ steps.semantic.outputs.new_release_patch_version }}

- name: Upload release notes
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: steps.semantic.outputs.new_release_published == 'true'
with:
name: release-notes
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/development-extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ env:

jobs:
build-extension:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
environment: development
outputs:
new_version: ${{ steps.extract_version.outputs.version }}
Expand All @@ -39,7 +39,7 @@ jobs:
IS_PUBLISHING: true
run: pnpm build

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
name: Upload build artifact
with:
name: leather-io
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/external-api-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ env:

jobs:
test-ordinals:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/provision
Expand Down
13 changes: 7 additions & 6 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
test:
name: Shard ${{ matrix.shardIndex }} of ${{ matrix.shardTotal }}
timeout-minutes: 30
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -80,9 +80,9 @@ jobs:

- name: Upload blob report to GitHub Actions Artifacts
if: always()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: all-blob-reports
name: blob-report-${{ matrix.shardIndex }}
path: blob-report
retention-days: 1
if-no-files-found: error
Expand All @@ -91,15 +91,16 @@ jobs:
name: Merge reports
if: always()
needs: test
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4

- name: Download blob reports from GitHub Actions Artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: all-blob-reports
path: all-blob-reports
pattern: blob-report-*
merge-multiple: true

- name: Merge into HTML Report
run: npx playwright merge-reports --reporter html ./all-blob-reports
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/publish-extensions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ env:

jobs:
extract-version:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
outputs:
new_version: ${{ steps.extract_version.outputs.version }}
steps:
Expand All @@ -37,7 +37,7 @@ jobs:

publish-chrome-extension:
name: Publish Chrome extension
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
if: startsWith(github.ref, 'refs/tags/v')
needs:
- extract-version
Expand All @@ -56,7 +56,7 @@ jobs:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
run: pnpm build

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
name: Upload build artifact
with:
name: leather-chromium-v${{ needs.extract-version.outputs.new_version }}
Expand All @@ -79,7 +79,7 @@ jobs:

publish-firefox-extension:
name: Publish Firefox extension
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
if: startsWith(github.ref, 'refs/tags/v')
env:
TARGET_BROWSER: firefox
Expand All @@ -95,7 +95,7 @@ jobs:

run: pnpm build

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
name: Upload build artifact
with:
name: leather-firefox-v${{ needs.extract-version.outputs.new_version }}
Expand All @@ -113,14 +113,14 @@ jobs:

create-github-release:
name: Create Github release
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
needs:
- extract-version
- publish-chrome-extension
- publish-firefox-extension
steps:
- name: Download extension build
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
path: .

Expand Down Expand Up @@ -150,7 +150,7 @@ jobs:
leather-firefox.v${{ needs.extract-version.outputs.new_version }}.zip

post_run:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
needs:
- publish-chrome-extension
- publish-firefox-extension
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-unit-test-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
coverage:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-leather-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
update-leather-deps:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04

steps:
- uses: actions/checkout@v4
Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/warn-release-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Warn on Release Branch

on:
pull_request:
types: [opened]

jobs:
warn-on-release-branch:
runs-on: ubuntu-latest

steps:
- name: Check if branch name starts with "release"
id: check_branch
run: |
if [[ "${{ github.head_ref }}" == release* ]]; then
echo "branch_is_release=true" >> $GITHUB_ENV
else
echo "branch_is_release=false" >> $GITHUB_ENV
fi

- name: Post warning comment
if: env.branch_is_release == 'true'
uses: actions/github-script@v6
with:
script: |
github.rest.issues.createComment({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.payload.pull_request.number,
body: "⚠️ Warning: PR should be **merged** and not **rebased**."
})
Loading
Loading