Skip to content

Commit 0757183

Browse files
chore(wrapped-keys-lit-actions): LIT-3920 - Add usage instructions to sync-actions-to-ipfs.js
1 parent 0baf1d2 commit 0757183

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

packages/wrapped-keys-lit-actions/sync-actions-to-ipfs.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@ const {
66
litActionRepositoryCommon,
77
} = require('./dist/src/index');
88

9+
/** Usage:
10+
* 1. Ensure you have a valid Pinata IPFS JWT in `LIT_IPFS_JWT` env var
11+
* 2. Make sure you run `yarn build` to ensure that all LIT actions code has been built into the generated directory from the current commit
12+
* 3. `node sync-actions-to-ipfs` -> this will print out JSON of the `LIT_ACTION_CID_REPOSITORY` and LIT_ACTION_CID_REPOSITORY_COMMON
13+
* 4. Copy/paste the CIDs into those objects in `packages/wrapped-keys/src/lib/lit-actions-client/constants.ts`
14+
* 5. Commit the changes and push them to your branch
15+
*/
16+
917
const JWT = process.env.LIT_IPFS_JWT || '';
1018
if (!JWT) {
1119
throw new Error('Missing Pinata IPFS JWT in LIT_IPFS_JWT env variable');

0 commit comments

Comments
 (0)