zurik 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/publish.yml +31 -0
- package/package.json +7 -4
- package/readme.md +24 -0
- package/zurik-1.0.0.tgz +0 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
name: Publish to npm
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags:
|
|
6
|
+
- 'v*.*.*'
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
publish:
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
|
|
12
|
+
steps:
|
|
13
|
+
- name: Checkout
|
|
14
|
+
uses: actions/checkout@v4
|
|
15
|
+
|
|
16
|
+
- name: Set up Node
|
|
17
|
+
uses: actions/setup-node@v4
|
|
18
|
+
with:
|
|
19
|
+
node-version: 20
|
|
20
|
+
registry-url: 'https://registry.npmjs.org'
|
|
21
|
+
|
|
22
|
+
- name: Install deps
|
|
23
|
+
run: npm ci
|
|
24
|
+
|
|
25
|
+
- name: Build
|
|
26
|
+
run: npm run build --if-present
|
|
27
|
+
|
|
28
|
+
- name: Publish
|
|
29
|
+
env:
|
|
30
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
31
|
+
run: npm publish --access public
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zurik",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "CLI tool for encrypting and decrypting sensitive project files into a single .zurik bundle.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -15,7 +15,10 @@
|
|
|
15
15
|
"git",
|
|
16
16
|
"files"
|
|
17
17
|
],
|
|
18
|
-
"author": "",
|
|
19
|
-
"
|
|
20
|
-
|
|
18
|
+
"author": "Safi",
|
|
19
|
+
"repository": {
|
|
20
|
+
"type": "git",
|
|
21
|
+
"url": "git@github.com:apotox/zurik.git"
|
|
22
|
+
},
|
|
23
|
+
"license": "MIT"
|
|
21
24
|
}
|
package/readme.md
CHANGED
|
@@ -23,3 +23,27 @@ npm install -g zurik
|
|
|
23
23
|
# also you can pass the password as an argument
|
|
24
24
|
npx zurik -e -p "your-password"
|
|
25
25
|
```
|
|
26
|
+
|
|
27
|
+
## Usage
|
|
28
|
+
### Encrypt files
|
|
29
|
+
- create *.gitencrypt* file in the root of your project
|
|
30
|
+
- add paths to files you want to encrypt, one per line
|
|
31
|
+
- for example:
|
|
32
|
+
```txt
|
|
33
|
+
# .gitencrypt
|
|
34
|
+
src/config.json
|
|
35
|
+
src/secret.txt
|
|
36
|
+
```
|
|
37
|
+
- run the command below
|
|
38
|
+
```sh
|
|
39
|
+
npx zurik -e -p "your-password"
|
|
40
|
+
```
|
|
41
|
+
- the encrypted files will be saved in `.zurik` file
|
|
42
|
+
- it will also add the encrypted files to `.gitignore` if they are not already ignored
|
|
43
|
+
|
|
44
|
+
### Decrypt files
|
|
45
|
+
- run the command below to decrypt the files
|
|
46
|
+
```sh
|
|
47
|
+
npx zurik -d -p "your-password"
|
|
48
|
+
```
|
|
49
|
+
- the decrypted files will be saved in the same directory as the original files
|
package/zurik-1.0.0.tgz
DELETED
|
Binary file
|