Skip to content

Latest commit

 

History

History
86 lines (69 loc) · 2.61 KB

README.md

File metadata and controls

86 lines (69 loc) · 2.61 KB

Simply a key rotation tool!~ ❤️

Docs

NPM Version NPM Downloads Coveralls CI Build

Code Style: Prettier Maintainability zx-bulk-release

Install

NPM

$ npm install @refreshly/core @refreshly/aws @refreshly/github

Yarn

$ yarn add @refreshly/core @refreshly/aws @refreshly/github

PNPM

$ pnpm add @refreshly/core @refreshly/aws @refreshly/github

Usage

import { Refreshly } from '@refreshly/core';
import { AWS } from '@refreshly/aws';
import { GitHub } from '@refreshly/github';

Refreshly(
  new AWS.Source({
    key: myAwsAccessKeyId, // process.env.AWS_ACCESS_KEY_ID
    secretKey: myAwsSecretAccessKey, // process.env.AWS_SECRET_ACCESS_KEY
    prefix: 'CI_ONLY_',
    targets: [
      new GitHub.Target({
        token: myGitHubToken, // process.env.GH_TOKEN || process.env.GITHUB_TOKEN
        orgs: ['ribbon-studios'],
      }),
    ],
  })
);