From 4c9eaf210d686f5aced9c45677ceac16f92a855e Mon Sep 17 00:00:00 2001 From: lukachi Date: Thu, 7 Mar 2024 17:03:48 +0200 Subject: [PATCH] upd workflows with autopublish --- .github/workflows/actions.yaml | 6 +- .github/workflows/publish.yaml | 26 -- .github/workflows/tag-rc.yaml | 53 ++++ .github/workflows/tag.yaml | 26 +- .yarnrc.yml | 4 +- package.json | 5 +- packages/snap/.eslintrc.js | 1 - packages/snap/jest.config.ts | 21 -- packages/snap/package.json | 7 +- packages/snap/src/tests/index.test.ts | 25 -- .../src/tests/verifiable-credentials.test.ts | 295 ------------------ werf.yaml | 20 +- yarn.lock | 8 +- 13 files changed, 94 insertions(+), 403 deletions(-) delete mode 100644 .github/workflows/publish.yaml create mode 100644 .github/workflows/tag-rc.yaml delete mode 100644 packages/snap/jest.config.ts delete mode 100644 packages/snap/src/tests/index.test.ts delete mode 100644 packages/snap/src/tests/verifiable-credentials.test.ts diff --git a/.github/workflows/actions.yaml b/.github/workflows/actions.yaml index 770d642a..a35f64a8 100644 --- a/.github/workflows/actions.yaml +++ b/.github/workflows/actions.yaml @@ -26,8 +26,8 @@ jobs: werf version docker version echo $GITHUB_REPOSITORY - echo $GITHUB_SHA + echo $GITHUB_REF_NAME - name: Run Build run: | - . $(werf ci-env github --as-file) - werf export web --tag ghcr.io/$GITHUB_REPOSITORY:$GITHUB_SHA \ No newline at end of file + . $(werf ci-env github --as-file) + werf export web --tag ghcr.io/$GITHUB_REPOSITORY:$GITHUB_REF_NAME diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml deleted file mode 100644 index 3bef2b67..00000000 --- a/.github/workflows/publish.yaml +++ /dev/null @@ -1,26 +0,0 @@ -name: Publish to NPM - -on: - push: - tags: - - '*.*.*' - -jobs: - - publish: - runs-on: ubuntu-latest - strategy: - matrix: - nodejs: [ 18 ] - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 - with: - node-version: ${{ matrix.nodejs }} - - name: Publish - run: | - yarn install - yarn build - yarn publish - env: - NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} diff --git a/.github/workflows/tag-rc.yaml b/.github/workflows/tag-rc.yaml new file mode 100644 index 00000000..f66d8ac0 --- /dev/null +++ b/.github/workflows/tag-rc.yaml @@ -0,0 +1,53 @@ +on: + push: + tags: + - '^\d+\.\d+\.\d+-rc\.\d+$' + +jobs: + converge: + name: Converge + runs-on: ubuntu-latest + steps: + + - name: Checkout code + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Install werf + uses: werf/actions/install@v1.2 + + - name: Log in to registry + # This is where you will update the personal access token to GITHUB_TOKEN + run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin + + - name: Run echo + run: | + werf version + docker version + echo $GITHUB_REPOSITORY + echo $GITHUB_REF_NAME + - name: Run Build + run: | + . $(werf ci-env github --as-file) + werf export web --tag ghcr.io/$GITHUB_REPOSITORY:$GITHUB_REF_NAME + + publish: + runs-on: ubuntu-latest + strategy: + matrix: + nodejs: [ 18 ] + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.nodejs }} + - name: Publish + run: | + yarn install + yarn build + yarn lint + yarn test + yarn publish-rc + env: + NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} diff --git a/.github/workflows/tag.yaml b/.github/workflows/tag.yaml index 9b4286e3..940c0483 100644 --- a/.github/workflows/tag.yaml +++ b/.github/workflows/tag.yaml @@ -1,7 +1,7 @@ on: push: tags: - - '[0-9]+.[0-9]+.[0-9]+' + - '^\d+\.\d+\.\d+$' jobs: converge: @@ -29,5 +29,25 @@ jobs: echo $GITHUB_REF_NAME - name: Run Build run: | - . $(werf ci-env github --as-file) - werf export web --tag ghcr.io/$GITHUB_REPOSITORY:$GITHUB_REF_NAME \ No newline at end of file + . $(werf ci-env github --as-file) + werf export web --tag ghcr.io/$GITHUB_REPOSITORY:$GITHUB_REF_NAME + + publish: + runs-on: ubuntu-latest + strategy: + matrix: + nodejs: [ 18 ] + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.nodejs }} + - name: Publish + run: | + yarn install + yarn build + yarn lint + yarn test + yarn publish-stable + env: + NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} diff --git a/.yarnrc.yml b/.yarnrc.yml index 42a71fd0..031346dc 100644 --- a/.yarnrc.yml +++ b/.yarnrc.yml @@ -9,7 +9,7 @@ enableTelemetry: false nodeLinker: node-modules -npmAuthToken: "${NPM_AUTH_TOKEN:-}" +npmAuthToken: '${NPM_AUTH_TOKEN:-}' packageExtensions: debug@*: @@ -19,6 +19,6 @@ packageExtensions: plugins: - path: .yarn/plugins/@yarnpkg/plugin-after-install.cjs - spec: "https://raw.githubusercontent.com/mhassan1/yarn-plugin-after-install/v0.6.0/bundles/@yarnpkg/plugin-after-install.js" + spec: 'https://raw.githubusercontent.com/mhassan1/yarn-plugin-after-install/v0.6.0/bundles/@yarnpkg/plugin-after-install.js' yarnPath: .yarn/releases/yarn-4.1.1.cjs diff --git a/package.json b/package.json index 1e0dc967..c8025f3a 100644 --- a/package.json +++ b/package.json @@ -24,10 +24,11 @@ "lint:eslint": "eslint . --cache --ext js,ts", "lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write", "lint:misc": "prettier '**/*.json' '**/*.md' '!**/CHANGELOG.md' '**/*.yml' --ignore-path .gitignore", - "publish": "yarn workspaces foreach --no-private exec yarn npm publish", + "publish-rc": "yarn build && yarn workspaces foreach --no-private --all exec yarn npm publish --tag next", + "publish-stable": "yarn build && yarn workspaces foreach --no-private --all exec yarn npm publish", "rsc": "node scripts/release-sanity-check.js", "start": "yarn build:connector && yarn workspaces foreach --parallel --interlaced --verbose run start", - "test": "echo \"TODO\"" + "test": "yarn workspaces foreach -pv --no-private --all run test" }, "devDependencies": { "@metamask/eslint-config": "^12.0.0", diff --git a/packages/snap/.eslintrc.js b/packages/snap/.eslintrc.js index 6c4a37c8..4ddd6db9 100644 --- a/packages/snap/.eslintrc.js +++ b/packages/snap/.eslintrc.js @@ -10,7 +10,6 @@ module.exports = { '**/src/typia-generated/*.ts', '**/*.js', '**/scripts/**/*.js', - '**/src/**/*.test.ts', '**/src/**/types/**/contracts/**/*.ts', '**/src/**/types/**/graphql/**/*.ts', ], diff --git a/packages/snap/jest.config.ts b/packages/snap/jest.config.ts deleted file mode 100644 index 86a3ebce..00000000 --- a/packages/snap/jest.config.ts +++ /dev/null @@ -1,21 +0,0 @@ -import type { Config } from '@jest/types'; - -const config: Config.InitialOptions = { - preset: '@metamask/snaps-jest', - testEnvironment: 'node', - extensionsToTreatAsEsm: ['.ts'], - moduleNameMapper: { - '^(\\.{1,2}/.*)\\.js$': '$1', - }, - transform: { - '^.+\\.tsx?$': [ - 'ts-jest', - { - tsconfig: 'tsconfig.json', - useESM: true, - }, - ], - }, -}; - -export default config; diff --git a/packages/snap/package.json b/packages/snap/package.json index 5b07b0d7..64e8144b 100644 --- a/packages/snap/package.json +++ b/packages/snap/package.json @@ -32,9 +32,6 @@ "prepublishOnly": "yarn && yarn build", "serve": "mm-snap serve", "start": "nodemon --watch src/ --ext ts --exec 'yarn build && yarn serve'", - "test": "yarn test:vc && yarn test:snap", - "test:snap": "node --experimental-vm-modules --trace-warnings ../../node_modules/jest/bin/jest.js --findRelatedTests src/tests/index.test.ts", - "test:vc": "node --experimental-vm-modules --trace-warnings ../../node_modules/jest/bin/jest.js --findRelatedTests ./src/tests/verifiable-credentials.test.ts", "typia:generate": "typia generate --input src/typia-templates --output src/typia-generated --project tsconfig.json", "preversion": "yarn && yarn build && git add snap.manifest.json" }, @@ -60,8 +57,8 @@ "@metamask/snaps-utils": "^6.0.0", "@noble/hashes": "^1.3.3", "@noble/secp256k1": "1.7.1", - "@rarimo/rarime-connector": "workspace:*", - "@rarimo/zkp-iden3": "workspace:*", + "@rarimo/rarime-connector": "workspace:^", + "@rarimo/zkp-iden3": "workspace:^", "base64-js": "^1.5.1", "bech32": "^2.0.0", "buffer": "6.0.3", diff --git a/packages/snap/src/tests/index.test.ts b/packages/snap/src/tests/index.test.ts deleted file mode 100644 index 4ec9609f..00000000 --- a/packages/snap/src/tests/index.test.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { installSnap } from '@metamask/snaps-jest'; -import { expect } from '@jest/globals'; - -describe('onRpcRequest', () => { - it('throws an error if the requested method does not exist', async () => { - const { request, close } = await installSnap(); - - const response = await request({ - method: 'foo', - }); - - expect(response).toRespondWithError({ - code: -32603, - message: 'Internal JSON-RPC error.', - data: { - cause: { - message: 'Method not found.', - stack: expect.any(String), - }, - }, - }); - - await close(); - }); -}); diff --git a/packages/snap/src/tests/verifiable-credentials.test.ts b/packages/snap/src/tests/verifiable-credentials.test.ts deleted file mode 100644 index 1f2b7359..00000000 --- a/packages/snap/src/tests/verifiable-credentials.test.ts +++ /dev/null @@ -1,295 +0,0 @@ -import * as crypto from 'crypto'; -import { Hex, PrivateKey } from '@iden3/js-crypto'; -import { - ProofQuery, - CircuitId, - CreateProofRequestParams, - SaveCredentialsRequestParams, - W3CCredential, -} from '@rarimo/rarime-connector'; -import { hashVC, VCManager } from '../zkp/helpers'; - -const dummyOffer: SaveCredentialsRequestParams = { - body: { - Credentials: [ - { - description: 'urn:uuid:6dff4518-5177-4f39-af58-9c156d9b6309', - id: 'cb43c431-8ddc-11ee-8b6e-06feca5194ee', - }, - ], - url: 'https://issuer.polygon.robotornot.mainnet-beta.rarimo.com/v1/agent', - }, - from: 'did:iden3:tLd8sbb1xTSvi2wtRF4TUVcfDUr8ppYMohLqjhGQT', - id: 'ba99e52a-bd9a-40cf-bc01-e736c37713f8', - threadID: 'ba99e52a-bd9a-40cf-bc01-e736c37713f8', - to: 'did:iden3:tQnU2hhZSkUMvA7PGqy8X3f39f4ywgvUM3kiv48XW', - typ: 'application/iden3comm-plain-json', - type: 'https://iden3-communication.io/credentials/1.0/offer', -}; - -const dummyVC: W3CCredential = { - id: - 'https://issuer.polygon.robotornot.mainnet-beta.rarimo.com/v1/credentials/cb43c431-8ddc-11ee-8b6e-06feca5194ee', - '@context': [ - 'https://ipfs.rarimo.com/ipfs/QmYCGiCoDn9WVoSwUBA8XLhgjzbeYLWZPfoM3scdtkWpfF', - 'https://schema.iden3.io/core/jsonld/iden3proofs.jsonld', - 'https://ipfs.rarimo.com/ipfs/Qmdw8ugiKw62eVoYdDmEuvLj4SXHD2bWGU48CbNDSMVKuU', - ], - type: ['VerifiableCredential', 'IdentityProviders'], - issuanceDate: '2023-11-28T10:56:33.760252645Z', - credentialSubject: { - address: '0x8100428Fd8e67787564ad56C4b2CEbCA3B31c45C', - civicGatekeeperNetworkId: 4, - gitcoinPassportScore: 'none', - id: 'did:iden3:tQnU2hhZSkUMvA7PGqy8X3f39f4ywgvUM3kiv48XW', - isNatural: 1, - kycAdditionalData: 'none', - provider: 'Civic', - type: 'IdentityProviders', - unstoppableDomain: 'none', - worldcoinScore: 'none', - }, - credentialStatus: { - id: - 'https://issuer.polygon.robotornot.mainnet-beta.rarimo.com/v1/credentials/revocation/status/1250389945', - revocationNonce: 1250389945, - type: 'SparseMerkleTreeProof', - }, - issuer: 'did:iden3:tLd8sbb1xTSvi2wtRF4TUVcfDUr8ppYMohLqjhGQT', - credentialSchema: { - id: - 'https://ipfs.rarimo.com/ipfs/QmTJ5FB4wMUpxtDcj2Tp1vqYe2NeeXZjVNfQC46mpo34wv', - type: 'JsonSchema2023', - }, - proof: [ - { - type: 'BJJSignature2021', - issuerData: { - id: 'did:iden3:tLd8sbb1xTSvi2wtRF4TUVcfDUr8ppYMohLqjhGQT', - updateUrl: - 'https://issuer.polygon.robotornot.mainnet-beta.rarimo.com/v1/claims/a780d2fd-22ec-435e-8f05-eae04205c2d9/mtp', - state: { - claimsTreeRoot: - '9747653320df0cd590ee5b84f87bbbe2c3b286b62ba9a1645cda0d6d59742024', - value: - 'cd96cf691736b9bd8904bd7c8908a1fb634062297c94017175a9542de8fbac0a', - }, - authCoreClaim: - 'cca3371a6cb1b715004407e325bd993c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000009b96a8f6eeb9cca85294c178d2ea6cc3d971e806b26f313cac4308eebbd00b0b8dc52c8622de9aee96eff59fde209fc688c76a638029a7cdb1b9010c249737090000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000', - mtp: { - existence: true, - siblings: [], - }, - credentialStatus: { - id: - 'https://issuer.polygon.robotornot.mainnet-beta.rarimo.com/v1/credentials/revocation/status/0', - revocationNonce: 0, - type: 'SparseMerkleTreeProof', - }, - }, - coreClaim: - '11d9dcf5ebe39bd8b48f0d9e2d813214220000000000000000000000000000000100926171374b0bab5269fa51685484083cb1ace4ec39d69abb6fdb1a1c0d0088747192a098222e2236d626c2efa5bb437bbf3d0a70b6df2555f0c2cae9f80d0000000000000000000000000000000000000000000000000000000000000000b96f874a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000', - signature: - '99e9410ad406f86c375b4961b4b9aaf991b52f37f067718474a45d516929bb0b1a3c4adeeb79d0702821d92b19733805f483db265a9a7da497cc42bdc4db1503', - }, - { - id: - 'https://issuer.polygon.robotornot.mainnet-beta.rarimo.com/v1/claims/cb43c431-8ddc-11ee-8b6e-06feca5194ee/mtp', - type: 'Iden3SparseMerkleTreeProof', - issuerData: { - id: 'did:iden3:tLd8sbb1xTSvi2wtRF4TUVcfDUr8ppYMohLqjhGQT', - updateUrl: - 'https://issuer.polygon.robotornot.mainnet-beta.rarimo.com/v1/claims/a780d2fd-22ec-435e-8f05-eae04205c2d9/mtp', - state: { - txId: - '0xde78486369e8a937e0226f361fa87f077197c5bd4e955b7c55b3a02fbe6dd36d', - blockTimestamp: 1701169006, - blockNumber: 2235238, - rootOfRoots: - '22f25b788168228e6a8a2f37e617eb161d95af0372c5e314f081838bf92f782e', - claimsTreeRoot: - 'f67bd5787a32d88e821218e4537f65e58cd728d2b44a83587f923d506374cc0c', - revocationTreeRoot: - '0000000000000000000000000000000000000000000000000000000000000000', - value: - '2ca1c7faea7f6e66b48cdc2dd5087bd44324b995bb1fec37cdae9f655809f903', - }, - }, - coreClaim: - '11d9dcf5ebe39bd8b48f0d9e2d813214220000000000000000000000000000000100926171374b0bab5269fa51685484083cb1ace4ec39d69abb6fdb1a1c0d0088747192a098222e2236d626c2efa5bb437bbf3d0a70b6df2555f0c2cae9f80d0000000000000000000000000000000000000000000000000000000000000000b96f874a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000', - mtp: { - existence: true, - siblings: [ - '19024344007810320629541446405864136429933108526974365027523072864851953852729', - '9102521048383445289202304630633650804956787863823965484563169301255132900273', - '19709089068324863107968940409532472522071733908500865549990483422746006938781', - '14875109561057147290904786505306894891086176673576149964675655767873444698279', - '17842863886555059413417814995207857247384599772382468186567380825126690613521', - '15898886705705143063647197250660265981008147884625819949690638195768116402136', - ], - }, - }, - ], -}; - -const dummyQueryProofRequest: CreateProofRequestParams = { - circuitId: CircuitId.AtomicQueryMTPV2OnChain, - accountAddress: '0x...', - issuerDid: dummyVC.issuer, - - query: { - allowedIssuers: ['*'], - credentialSubject: { - isNatural: { - $eq: 1, - }, - }, - type: dummyVC.type, - }, -}; - -const dummyQueryProof: ProofQuery = { - allowedIssuers: ['*'], - credentialSubject: { - isNatural: { - $eq: 1, - }, - }, - type: dummyVC.type, -}; - -/** - * In case, when you have a graphql api, - * e. g. 'http://localhost:5005/graphql' - */ -const serverURL = undefined; - -const initPrivateKey = (hexString?: string): string => { - let arr; - if (hexString) { - arr = Hex.decodeString(hexString); - } else { - arr = crypto.randomBytes(32); - - return initPrivateKey(new PrivateKey(arr).hex()); - } - return new PrivateKey(arr).hex(); -}; - -describe('Verifiable Credentials', () => { - const pkHex1 = initPrivateKey(); - const pkHex2 = initPrivateKey(); - - it('should encrypt and save Verifiable Credentials for "user 1" and "user 2"', async () => { - const [vcManager1, vcManager2] = await Promise.all([ - VCManager.create({ pkHex: pkHex1, serverURL }), - VCManager.create({ pkHex: pkHex2, serverURL }), - ]); - - await expect(vcManager1.encryptAndSaveVC(dummyVC)).resolves.not.toThrow(); - - await expect(vcManager2.encryptAndSaveVC(dummyVC)).resolves.not.toThrow(); - }, 900_000); - - it('should fetch and decrypt Verifiable Credentials of "user 1" and "user 2"', async () => { - const [vcManager1, vcManager2] = await Promise.all([ - VCManager.create({ pkHex: pkHex1, serverURL }), - VCManager.create({ pkHex: pkHex2, serverURL }), - ]); - - const vc1 = await vcManager1.getAllDecryptedVCs(); - const vc2 = await vcManager2.getAllDecryptedVCs(); - - expect(vc1).toHaveLength(1); - expect(vc2).toHaveLength(1); - }, 900_000); - - it('should not save Verifiable Credentials for "user 1" and "user 2"', async () => { - const [vcManager1, vcManager2] = await Promise.all([ - VCManager.create({ pkHex: pkHex1, serverURL }), - VCManager.create({ pkHex: pkHex2, serverURL }), - ]); - - await expect(vcManager1.encryptAndSaveVC(dummyVC)).resolves.not.toThrow(); - - await expect(vcManager2.encryptAndSaveVC(dummyVC)).resolves.not.toThrow(); - - const vc1 = await vcManager1.getAllDecryptedVCs(); - const vc2 = await vcManager2.getAllDecryptedVCs(); - - expect(vc1).toHaveLength(1); - expect(vc2).toHaveLength(1); - }, 900_000); - - it('should fetch and decrypt Verifiable Credentials of "user 1" and "user 2" by offer', async () => { - const [vcManager1, vcManager2] = await Promise.all([ - VCManager.create({ pkHex: pkHex1, serverURL }), - VCManager.create({ pkHex: pkHex2, serverURL }), - ]); - - const vc1 = await vcManager1.getDecryptedVCsByOffer(dummyOffer); - const vc2 = await vcManager2.getDecryptedVCsByOffer(dummyOffer); - - expect(vc1).toHaveLength(1); - expect(vc2).toHaveLength(1); - }, 900_000); - - it('should fetch and decrypt Verifiable Credentials of "user 1" and "user 2" by query hash', async () => { - const [vcManager1, vcManager2] = await Promise.all([ - VCManager.create({ pkHex: pkHex1, serverURL }), - VCManager.create({ pkHex: pkHex2, serverURL }), - ]); - - const client1 = vcManager1.ceramicProvider.client(); - const client2 = vcManager2.ceramicProvider.client(); - - const client1OwnerDid = client1.did?.id; - - if (!client1OwnerDid) { - throw new TypeError('client1 not authenticated'); - } - - const client2OwnerDid = client2.did?.id; - - if (!client2OwnerDid) { - throw new TypeError('client2 not authenticated'); - } - - const queryHash1 = hashVC( - String(dummyVC.credentialSubject.type), - dummyVC.issuer, - client1OwnerDid, - ); - - const queryHash2 = hashVC( - String(dummyVC.credentialSubject.type), - dummyVC.issuer, - client2OwnerDid, - ); - - const vc1 = await vcManager1.getDecryptedVCsByQueryHash(queryHash1); - const vc2 = await vcManager2.getDecryptedVCsByQueryHash(queryHash2); - - expect(vc1).toHaveLength(1); - expect(vc2).toHaveLength(1); - }, 900_000); - - it('should fetch and decrypt Verifiable Credentials of "user 1" and "user 2" by query proof', async () => { - const [vcManager1, vcManager2] = await Promise.all([ - VCManager.create({ pkHex: pkHex1, serverURL }), - VCManager.create({ pkHex: pkHex2, serverURL }), - ]); - - const vc1 = await vcManager1.getDecryptedVCsByQuery( - dummyQueryProof, - dummyQueryProofRequest.issuerDid, - ); - const vc2 = await vcManager2.getDecryptedVCsByQuery( - dummyQueryProof, - dummyQueryProofRequest.issuerDid, - ); - - expect(vc1).toHaveLength(1); - expect(vc2).toHaveLength(1); - }, 900_000); -}); diff --git a/werf.yaml b/werf.yaml index b29c2df9..0151051d 100644 --- a/werf.yaml +++ b/werf.yaml @@ -10,28 +10,16 @@ git: install: - package.json - yarn.lock - setup: + setup: - "**/*" -shell: +shell: beforeInstall: - apk --no-cache --update --virtual build-dependencies add python3 make g++ - install: + install: - cd /app #- yarn autoclean --init #- yarn autoclean --force - yarn install - setup: + setup: - cd /app - yarn build - ---- -image: web -from: nginx:alpine -git: - - add: /nginx.conf - to: /etc/nginx/nginx.conf -import: - - image: builder - add: /app/packages/site/public - to: /usr/share/nginx/html - after: setup \ No newline at end of file diff --git a/yarn.lock b/yarn.lock index e248ddad..99d1ea8d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5725,7 +5725,7 @@ __metadata: languageName: node linkType: hard -"@rarimo/rarime-connector@workspace:*, @rarimo/rarime-connector@workspace:^, @rarimo/rarime-connector@workspace:packages/connector": +"@rarimo/rarime-connector@workspace:^, @rarimo/rarime-connector@workspace:packages/connector": version: 0.0.0-use.local resolution: "@rarimo/rarime-connector@workspace:packages/connector" dependencies: @@ -5778,8 +5778,8 @@ __metadata: "@metamask/snaps-utils": "npm:^6.0.0" "@noble/hashes": "npm:^1.3.3" "@noble/secp256k1": "npm:1.7.1" - "@rarimo/rarime-connector": "workspace:*" - "@rarimo/zkp-iden3": "workspace:*" + "@rarimo/rarime-connector": "workspace:^" + "@rarimo/zkp-iden3": "workspace:^" "@types/intl": "npm:1.2.0" "@types/lodash": "npm:^4.14.202" "@types/uuid": "npm:9.0.2" @@ -5818,7 +5818,7 @@ __metadata: languageName: node linkType: hard -"@rarimo/zkp-iden3@workspace:*, @rarimo/zkp-iden3@workspace:packages/zkp-iden3": +"@rarimo/zkp-iden3@workspace:^, @rarimo/zkp-iden3@workspace:packages/zkp-iden3": version: 0.0.0-use.local resolution: "@rarimo/zkp-iden3@workspace:packages/zkp-iden3" dependencies: