Skip to content

Commit

Permalink
version bumped and bin added
Browse files Browse the repository at this point in the history
  • Loading branch information
BRTZL committed May 30, 2022
1 parent b79fd83 commit e7e7481
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish-to-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ jobs:
node-version: "16.x"
registry-url: "https://registry.npmjs.org"
- run: npm ci
- run: npm publish
- run: npm publish --access=public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
14 changes: 3 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,11 @@
# GitHub ENV Exporter
# GitHub ENV Importer

GitHub ENV Exporter is a tool for uplaoding all ENV secrets from .env file to GitHub Actions Secrets.

## Installation

Use the package manager [npm](https://pip.pypa.io/en/stable/) to install foobar.

```bash
npm install
```
GitHub ENV Importer is a tool for importing all ENV secrets from .env file to GitHub Actions Secrets.

## Usage

```bash
node index.js
npx gh_env_importer --owner=OWNER --repo=REPO --envpath=PATH_TO_ENV
```

## Contributing
Expand Down
1 change: 1 addition & 0 deletions index.js
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#! /usr/bin/env node
const sodium = require("tweetsodium");
const { exec } = require("child_process");
const { owner, repo, envpath } = require("yargs/yargs")(process.argv.slice(2)).argv;
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@brtzl/gh_env_importer",
"version": "1.0.0",
"version": "1.0.1",
"main": "index.js",
"license": "MIT",
"dependencies": {
Expand All @@ -14,6 +14,9 @@
"scripts": {
"start": "node index.js"
},
"bin": {
"gh_env_importer": "index.js"
},
"repository": {
"type": "git",
"url": "git+https://github.com/BRTZL/gh_env_importer.git"
Expand Down

0 comments on commit e7e7481

Please sign in to comment.