Skip to content

Commit

Permalink
Production Deploy (#14672)
Browse files Browse the repository at this point in the history
* Manual deploy as of commit:60669b469fb3749164cdd6e251a7776a7c949134

* fix(networks): correct checks for testnets (#14666)

* check for testnet signers

* minimal changes in networks files to run checks

* expected policy

* redeployed impl in manifest

---------

Co-authored-by: Julien Genestoux <[email protected]>

* ci(networks): ignore Zksync contract verification checks (#14673)

* ignore zksync verification checks

* fix USDC name and symbol

* fix(unlock-app): Enable Editable Image URL Inputs in Event Settings (#14679)

* fix image upload form control

* cleanup

* fix(unlock-app): Checkout preview alignment (#14681)

fix styling

---------

Co-authored-by: Clément Renaud <[email protected]>
Co-authored-by: txbì <[email protected]>
  • Loading branch information
3 people authored Sep 26, 2024
1 parent 75c063a commit d84d9f9
Show file tree
Hide file tree
Showing 296 changed files with 10,615 additions and 3,557 deletions.
Binary file modified .github/actions/blog/.yarn/install-state.gz
Binary file not shown.
3 changes: 1 addition & 2 deletions .github/actions/blog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"license": "ISC",
"dependencies": {
"feedparser-promised": "2.0.1",
"fs-extra": "11.2.0",
"node-fetch": "3.3.2"
"fs-extra": "11.2.0"
}
}
8 changes: 2 additions & 6 deletions .github/actions/blog/rss_feed.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
const fs = require('fs-extra')
const path = require('path')
const fetch = require('node-fetch')
const feedparser = require('feedparser-promised')

function escapeMarkdown(str) {
return str.replace(/(["\\])/g, '\\$1');
return str.replace(/(["\\])/g, '\\$1')
}

// Fetch the RSS feed
Expand Down Expand Up @@ -70,7 +69,6 @@ feedparser
if (!imageUrl) {
const enclosuresImage = entry.enclosures.find((enclosure) => {
return enclosure.type.startsWith('image')

})
if (enclosuresImage) {
imageUrl = enclosuresImage.url
Expand Down Expand Up @@ -115,9 +113,7 @@ subtitle: "${escapeMarkdown(subtitle)}"
authorName: "${escapeMarkdown(authorName)}"
publishDate: "${publishDate}"
description: "${escapeMarkdown(description)}"
image: "/images/blog/${slug}/${path.basename(
imageUrl
)}"
image: "/images/blog/${slug}/${path.basename(imageUrl)}"
---
![${title}](${imageUrl})
Expand Down
52 changes: 0 additions & 52 deletions .github/actions/blog/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ __metadata:
dependencies:
feedparser-promised: "npm:2.0.1"
fs-extra: "npm:11.2.0"
node-fetch: "npm:3.3.2"
languageName: unknown
linkType: soft

Expand Down Expand Up @@ -189,13 +188,6 @@ __metadata:
languageName: node
linkType: hard

"data-uri-to-buffer@npm:^4.0.0":
version: 4.0.1
resolution: "data-uri-to-buffer@npm:4.0.1"
checksum: 10/0d0790b67ffec5302f204c2ccca4494f70b4e2d940fea3d36b09f0bb2b8539c2e86690429eb1f1dc4bcc9e4df0644193073e63d9ee48ac9fce79ec1506e4aa4c
languageName: node
linkType: hard

"delayed-stream@npm:~1.0.0":
version: 1.0.0
resolution: "delayed-stream@npm:1.0.0"
Expand Down Expand Up @@ -279,16 +271,6 @@ __metadata:
languageName: node
linkType: hard

"fetch-blob@npm:^3.1.2, fetch-blob@npm:^3.1.4":
version: 3.2.0
resolution: "fetch-blob@npm:3.2.0"
dependencies:
node-domexception: "npm:^1.0.0"
web-streams-polyfill: "npm:^3.0.3"
checksum: 10/5264ecceb5fdc19eb51d1d0359921f12730941e333019e673e71eb73921146dceabcb0b8f534582be4497312d656508a439ad0f5edeec2b29ab2e10c72a1f86b
languageName: node
linkType: hard

"forever-agent@npm:~0.6.1":
version: 0.6.1
resolution: "forever-agent@npm:0.6.1"
Expand All @@ -307,15 +289,6 @@ __metadata:
languageName: node
linkType: hard

"formdata-polyfill@npm:^4.0.10":
version: 4.0.10
resolution: "formdata-polyfill@npm:4.0.10"
dependencies:
fetch-blob: "npm:^3.1.2"
checksum: 10/9b5001d2edef3c9449ac3f48bd4f8cc92e7d0f2e7c1a5c8ba555ad4e77535cc5cf621fabe49e97f304067037282dd9093b9160a3cb533e46420b446c4e6bc06f
languageName: node
linkType: hard

"fs-extra@npm:11.2.0":
version: 11.2.0
resolution: "fs-extra@npm:11.2.0"
Expand Down Expand Up @@ -503,24 +476,6 @@ __metadata:
languageName: node
linkType: hard

"node-domexception@npm:^1.0.0":
version: 1.0.0
resolution: "node-domexception@npm:1.0.0"
checksum: 10/e332522f242348c511640c25a6fc7da4f30e09e580c70c6b13cb0be83c78c3e71c8d4665af2527e869fc96848924a4316ae7ec9014c091e2156f41739d4fa233
languageName: node
linkType: hard

"node-fetch@npm:3.3.2":
version: 3.3.2
resolution: "node-fetch@npm:3.3.2"
dependencies:
data-uri-to-buffer: "npm:^4.0.0"
fetch-blob: "npm:^3.1.4"
formdata-polyfill: "npm:^4.0.10"
checksum: 10/24207ca8c81231c7c59151840e3fded461d67a31cf3e3b3968e12201a42f89ce4a0b5fb7079b1fa0a4655957b1ca9257553200f03a9f668b45ebad265ca5593d
languageName: node
linkType: hard

"oauth-sign@npm:~0.9.0":
version: 0.9.0
resolution: "oauth-sign@npm:0.9.0"
Expand Down Expand Up @@ -746,10 +701,3 @@ __metadata:
checksum: 10/da548149dd9c130a8a2587c9ee71ea30128d1526925707e2d01ed9c5c45c9e9f86733c66a328247cdd5f7c1516fb25b0f959ba754bfbe15072aa99ff96468a29
languageName: node
linkType: hard

"web-streams-polyfill@npm:^3.0.3":
version: 3.3.3
resolution: "web-streams-polyfill@npm:3.3.3"
checksum: 10/8e7e13501b3834094a50abe7c0b6456155a55d7571312b89570012ef47ec2a46d766934768c50aabad10a9c30dd764a407623e8bfcc74fcb58495c29130edea9
languageName: node
linkType: hard
22 changes: 13 additions & 9 deletions .github/workflows/_networks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,28 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v44
with:
files: |
packages/networks/src/networks/**
# setup monorepo only if a file has changed
- uses: actions/setup-node@v4
if: steps.changed-files.outputs.any_changed == 'true'
with:
node-version: 20

- run: yarn
if: steps.changed-files.outputs.any_changed == 'true'
shell: bash

- run: yarn build
if: steps.changed-files.outputs.any_changed == 'true'
shell: bash

- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v44
with:
files: |
packages/networks/src/networks/**
- name: List all changed files
if: steps.changed-files.outputs.any_changed == 'true'
env:
ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
run: |
Expand Down Expand Up @@ -66,4 +70,4 @@ jobs:
refresh-message-position: true
# We rely on a deployment of a proxy service to post comment from forked PRs
# see https://github.com/mshick/add-pr-comment-proxy for more info
proxy-url: "https://8080-cs-647313627692-default.cs-europe-west1-iuzs.cloudshell.dev"
proxy-url: 'https://pr-comment-bot-79b971aa34fe.herokuapp.com/'
10 changes: 6 additions & 4 deletions .github/workflows/_subgraph.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ name: Subgraphs deployment

on:
workflow_call:
secrets:
SUBGRAPH_STUDIO_DEPLOY_KEY:
required: true

jobs:
coverage:
Expand All @@ -13,7 +10,6 @@ jobs:
env:
DOCKER_BUILDKIT: 1
BUILDKIT_PROGRESS: plain
SUBGRAPH_STUDIO_DEPLOY_KEY: ${{ secrets.SUBGRAPH_STUDIO_DEPLOY_KEY }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
Expand All @@ -23,6 +19,12 @@ jobs:
- run: yarn build
- name: Prepare the network files
run: yarn workspace @unlock-protocol/subgraph prepare
- name: Load secrets from 1Password
uses: 1Password/[email protected]
with:
export-env: true
env:
SUBGRAPH_STUDIO_DEPLOY_KEY: op://secrets/subgraph/studio-deploy-key
- name: Deploying the subgraphs
run: yarn workspace @unlock-protocol/subgraph deploy-all
shell: bash
2 changes: 0 additions & 2 deletions .github/workflows/production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ jobs:
deploy-all-subgraphs:
if: ${{ github.repository_owner == 'unlock-protocol' }}
uses: ./.github/workflows/_subgraph.yml
secrets:
SUBGRAPH_STUDIO_DEPLOY_KEY: op://secrets/subgraph/studio-deploy-key

deploy-locksmith-production:
if: ${{ github.repository_owner == 'unlock-protocol' }}
Expand Down
4 changes: 2 additions & 2 deletions docker/development/eth-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"scripts": {
"build": "",
"lint:fix": "yarn lint --fix",
"lint": "eslint scripts/",
"lint": "eslint",
"packages": "yarn workspaces foreach --recursive --from '{@unlock-protocol/types,@unlock-protocol/core,@unlock-protocol/eslint-config,@unlock-protocol/hardhat-helpers,@unlock-protocol/express,@unlock-protocol/contracts,@unlock-protocol/networks,@unlock-protocol/paywall,@unlock-protocol/unlock-js,@unlock-protocol/crypto-icon,@unlock-protocol/ui,@unlock-protocol/hardhat-plugin,@unlock-protocol/email-templates}'",
"provision": "hardhat run scripts/provision.ts",
"start": "hardhat node"
Expand All @@ -24,4 +24,4 @@
"typescript": "5.5.4"
},
"packageManager": "[email protected]"
}
}
Loading

0 comments on commit d84d9f9

Please sign in to comment.