chore: upgrade unified bridge SDK (#40) #66
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Push to main branch | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
release: | |
name: Release Main Branch | |
runs-on: ubuntu-latest | |
environment: alpha | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
- name: Create .npmrc | |
run: echo '//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}' >> .npmrc | |
- name: Create env file | |
run: | | |
touch .env.production | |
echo RELEASE=alpha >> .env.production | |
echo POSTHOG_KEY=${{ secrets.POSTHOG_KEY }} >> .env.production | |
echo POSTHOG_URL=${{ secrets.POSTHOG_URL }} >> .env.production | |
echo ANALYTICS_ENCRYPTION_KEY=${{ secrets.ANALYTICS_ENCRYPTION_KEY }} >> .env.production | |
echo ANALYTICS_ENCRYPTION_KEY_ID=${{ secrets.ANALYTICS_ENCRYPTION_KEY_ID }} >> .env.production | |
echo COVALENT_API_KEY=${{ secrets.COVALENT_API_KEY }} >> .env.production | |
echo GLACIER_URL=${{ secrets.GLACIER_URL }} >> .env.production | |
echo PROXY_URL=${{ secrets.PROXY_URL }} >> .env.production | |
echo CORE_EXTENSION_LANDING_URL=${{ secrets.CORE_EXTENSION_LANDING_URL }} >> .env.production | |
echo SENTRY_DSN=${{ secrets.SENTRY_DSN }} >> .env.production | |
echo CORE_WEB_BASE_URL=${{ secrets.CORE_WEB_BASE_URL }} >> .env.production | |
echo WALLET_CONNECT_PROJECT_ID=${{ secrets.WALLET_CONNECT_PROJECT_ID }} >> .env.production | |
echo SEEDLESS_URL=${{ secrets.SEEDLESS_URL }} >> .env.production | |
echo SEEDLESS_ORG_ID=${{ secrets.SEEDLESS_ORG_ID }} >> .env.production | |
echo GOOGLE_OAUTH_CLIENT_ID=${{ secrets.GOOGLE_OAUTH_CLIENT_ID }} >> .env.production | |
echo APPLE_OAUTH_CLIENT_ID=${{ secrets.APPLE_OAUTH_CLIENT_ID }} >> .env.production | |
echo APPLE_OAUTH_REDIRECT_URL=${{ secrets.APPLE_OAUTH_REDIRECT_URL }} >> .env.production | |
echo CUBESIGNER_ENV=${{ secrets.CUBESIGNER_ENV }} >> .env.production | |
echo SEEDLESS_FIDO_IDENTITY_URL=${{ secrets.SEEDLESS_FIDO_IDENTITY_URL }} >> .env.production | |
echo NEWSLETTER_BASE_URL=${{ secrets.NEWSLETTER_BASE_URL }} >> .env.production | |
echo NEWSLETTER_PORTAL_ID=${{ secrets.NEWSLETTER_PORTAL_ID }} >> .env.production | |
echo NEWSLETTER_FORM_ID=${{ secrets.NEWSLETTER_FORM_ID }} >> .env.production | |
- name: Install dependencies | |
run: yarn setup | |
- name: Run tests | |
run: yarn test | |
- name: Build library | |
run: yarn build:alpha | |
- name: Setup sentry-cli | |
run: | | |
curl -sL https://sentry.io/get-cli/ | bash | |
echo [auth] >> .sentryclirc | |
echo token=${{ secrets.SENTRY_AUTH_TOKEN }} >> .sentryclirc | |
echo [defaults] >> .sentryclirc | |
echo org=${{ secrets.SENTRY_ORG }} >> .sentryclirc | |
echo project=${{ secrets.SENTRY_PROJECT }} >> .sentryclirc | |
- name: Release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
RELEASE_TYPE: alpha | |
run: yarn run semantic-release |