File tree Expand file tree Collapse file tree 6 files changed +427
-415
lines changed Expand file tree Collapse file tree 6 files changed +427
-415
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
name : Node.js CI
2
2
3
3
on :
4
- push :
5
- branches : main
4
+ merge_group :
5
+ branches :
6
+ - main
6
7
pull_request :
7
- branches : main
8
+ branches :
9
+ - main
10
+ push :
11
+ branches :
12
+ - main
8
13
9
14
jobs :
10
15
test :
17
22
version : latest
18
23
- uses : actions/setup-node@v4
19
24
with :
20
- node-version : latest
21
25
cache : pnpm
26
+ node-version : latest
27
+
22
28
- run : pnpm install --frozen-lockfile --strict-peer-dependencies
23
29
- run : pnpm run build --noEmit
24
30
- run : pnpm run lint
25
31
- run : pnpm run test
32
+
33
+ fix :
34
+ runs-on : ubuntu-latest
35
+
36
+ permissions :
37
+ contents : write
38
+
39
+ needs :
40
+ - test
41
+
42
+ if : failure() && github.event_name != 'merge_group' && github.actor != 'github-actions[bot]' && github.actor != 'nektos/act'
43
+
44
+ steps :
45
+ - uses : actions/checkout@v4
46
+ with :
47
+ ref : ${{ github.ref }}
48
+ - uses : pnpm/action-setup@v4
49
+ with :
50
+ version : latest
51
+ - uses : actions/setup-node@v4
52
+ with :
53
+ cache : pnpm
54
+ node-version : latest
55
+
56
+ - run : |
57
+ pnpm install --fix-lockfile --no-frozen-lockfile
58
+ git add .
59
+ - id : commit-lockfile
60
+ uses : qoomon/actions--create-commit@v1
61
+ with :
62
+ message : |
63
+ π pnpm install --fix-lockfile
64
+
65
+ [dependabot skip]
66
+ skip-empty : true
67
+
68
+ - run : |
69
+ pnpm run format
70
+ git add .
71
+ - id : commit-format
72
+ uses : qoomon/actions--create-commit@v1
73
+ with :
74
+ message : |
75
+ π¨ pnpm run format
76
+
77
+ [dependabot skip]
78
+ skip-empty : true
79
+
80
+ - run : |
81
+ pnpm run lint:fix
82
+ git add .
83
+ - id : commit-lint
84
+ uses : qoomon/actions--create-commit@v1
85
+ with :
86
+ message : |
87
+ π¨ pnpm run lint:fix
88
+
89
+ [dependabot skip]
90
+ skip-empty : true
91
+
92
+ - if : steps.commit-lockfile.outputs.commit || steps.commit-format.outputs.commit || steps.commit-lint.outputs.commit
93
+ run : git push
Original file line number Diff line number Diff line change 45
45
NODE_AUTH_TOKEN : ${{ secrets.NODE_AUTH_TOKEN }}
46
46
47
47
- run : pnpm pack --pack-gzip-level 9
48
- - name : Sign
49
- run : |
50
- eval `ssh-agent -s`
51
- ssh-add - <<< '${{ secrets.DEPLOY_KEY_PRIVATE }}'
52
- echo '${{ vars.DEPLOY_KEY_PUBLIC }}' > '${{ runner.temp }}/DEPLOY_KEY_PUBLIC.pub'
53
- ssh-keygen -Y sign -f '${{ runner.temp }}/DEPLOY_KEY_PUBLIC.pub' -n file natoboram-load_env-*.tgz
54
- ssh-keygen -Y verify -f ./.github/authorized_keys -I '41898282+github-actions[bot]@users.noreply.github.com' -n file -s natoboram-load_env-*.tgz.sig < natoboram-load_env-*.tgz
55
- - run : gh release upload ${{ github.ref_name }} natoboram-load_env-*.tgz natoboram-load_env-*.tgz.sig
48
+ - run : gh release upload ${{ github.ref_name }} natoboram-load_env-*.tgz
56
49
env :
57
50
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @natoboram/load_env" ,
3
- "version" : " 1.0.0 " ,
3
+ "version" : " 1.0.1 " ,
4
4
"description" : " A standalone implementation of Vite's loadEnv" ,
5
5
"keywords" : [
6
6
" dotenv" ,
43
43
"test:watch" : " vitest"
44
44
},
45
45
"dependencies" : {
46
- "dotenv" : " ^16.4.5 "
46
+ "dotenv" : " ^16.5.0 "
47
47
},
48
48
"devDependencies" : {
49
- "@eslint/js" : " ^9.12 .0" ,
50
- "@types/node" : " ^22.7.5 " ,
51
- "eslint" : " ^9.12 .0" ,
49
+ "@eslint/js" : " ^9.27 .0" ,
50
+ "@types/node" : " ^22.15.23 " ,
51
+ "eslint" : " ^9.27 .0" ,
52
52
"eslint-config-prettier" : " ^10.1.5" ,
53
- "globals" : " ^16.0 .0" ,
54
- "markdownlint-cli2" : " ^0.17 .1" ,
55
- "prettier" : " ^3.3 .3" ,
56
- "tsx" : " ^4.19.1 " ,
57
- "typedoc" : " ^0.28.3 " ,
53
+ "globals" : " ^16.2 .0" ,
54
+ "markdownlint-cli2" : " ^0.18 .1" ,
55
+ "prettier" : " ^3.5 .3" ,
56
+ "tsx" : " ^4.19.4 " ,
57
+ "typedoc" : " ^0.28.5 " ,
58
58
"typescript" : " 5.8.3" ,
59
- "typescript-eslint" : " ^8.8.1 " ,
60
- "vitest" : " ^3.0 .4"
59
+ "typescript-eslint" : " ^8.33.0 " ,
60
+ "vitest" : " ^3.1 .4"
61
61
},
62
62
"type" : " module" ,
63
63
"exports" : {
You canβt perform that action at this time.
0 commit comments