Skip to content

feat(rwa): add Ecko wallet functionality (#2884) #1910

feat(rwa): add Ecko wallet functionality (#2884)

feat(rwa): add Ecko wallet functionality (#2884) #1910

Workflow file for this run

name: Release
# Taken from: https://github.com/changesets/action#with-publishing
on:
workflow_dispatch:
push:
branches:
- main
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
release:
name: Changelog PR or Release
if: ${{ github.repository_owner == 'kadena-community' }}
runs-on: ubuntu-latest
permissions:
id-token: write
contents: write
pull-requests: write
packages: write
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
steps:
- uses: actions/checkout@v4
with:
show-progress: false
token: ${{ secrets.RELEASE_ACTION_GITHUB_TOKEN }}
- uses: dorny/paths-filter@v3
id: filter
with:
filters: |
graph:
- 'packages/apps/graph/**'
- name: Runner setup
uses: ./.github/actions/runner-setup
- name: Lint monorepo root
run: pnpm run lint
- name: Build, lint, test all packages
run: pnpm turbo lint build test
- name: Create Release PR or Publish
id: changesets
uses: changesets/action@v1
with:
# Note: pnpm install after versioning is necessary to refresh lockfile
version: pnpm run version
publish: pnpm run publish
commit: 'Update changelogs and bump versions'
title: '[ci] Release'
env:
# Needs "Contents" r+w and "Pull requests" r+w access to open/update PRs and push to main
GITHUB_TOKEN: ${{ secrets.RELEASE_ACTION_GITHUB_TOKEN }}
# Needs r+w access for packages of both orgs to publish to npm
NPM_TOKEN: ${{ secrets.RELEASE_ACTION_NPM_TOKEN }}
NPM_CONFIG_PROVENANCE: true
- name: Output (debug)
if: steps.changesets.outputs.published == 'true'
# Do something more interesting when a publish happens.
run: echo ${{ steps.changesets.outputs.publishedPackages }}
- name: Checkout code
uses: actions/checkout@v3
- name: Log in GHCR
run: |
echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Docker Meta for graphql
id: meta-graphql
uses: docker/metadata-action@v5
with:
images: |
ghcr.io/kadena-community/graphql
tags: |
type=ref,event=branch
type=sha,format=long
- name: Build and Push graphql image
uses: docker/build-push-action@v6
with:
context: packages/apps/graph
file: packages/apps/graph/Dockerfile
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta-graphql.outputs.tags }}
labels: ${{ steps.meta-graphql.outputs.labels }}
- name: Docker Meta for graphql-source
if: steps.filter.outputs.graph == 'true'
id: meta-graphql-source
uses: docker/metadata-action@v5
with:
images: |
ghcr.io/kadena-community/graphql
tags: |
type=ref,event=branch,prefix=preview-
type=sha,format=long,prefix=preview-
- name: Build and Push graphql-source image
if: steps.filter.outputs.graph == 'true'
uses: docker/build-push-action@v6
with:
context: packages/apps/graph
file: packages/apps/graph/source.Dockerfile
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta-graphql-source.outputs.tags }}
labels: ${{ steps.meta-graphql-source.outputs.labels }}