Skip to content

Commit 58d9aba

Browse files
authored
πŸ”– v1.0.1 (#38)
* πŸ”– v1.0.1 * πŸ‘· Add auto-fix in CI * ⬆️ pnpm update
1 parent dbc21c3 commit 58d9aba

File tree

6 files changed

+427
-415
lines changed

6 files changed

+427
-415
lines changed

β€Ž.github/authorized_keys

Lines changed: 0 additions & 1 deletion
This file was deleted.

β€Ž.github/workflows/node.js.yaml

Lines changed: 72 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
name: Node.js CI
22

33
on:
4-
push:
5-
branches: main
4+
merge_group:
5+
branches:
6+
- main
67
pull_request:
7-
branches: main
8+
branches:
9+
- main
10+
push:
11+
branches:
12+
- main
813

914
jobs:
1015
test:
@@ -17,9 +22,72 @@ jobs:
1722
version: latest
1823
- uses: actions/setup-node@v4
1924
with:
20-
node-version: latest
2125
cache: pnpm
26+
node-version: latest
27+
2228
- run: pnpm install --frozen-lockfile --strict-peer-dependencies
2329
- run: pnpm run build --noEmit
2430
- run: pnpm run lint
2531
- 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

β€Ž.github/workflows/pnpm-publish.yaml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,6 @@ jobs:
4545
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
4646

4747
- 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
5649
env:
5750
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

β€Ž.github/workflows/pnpm-version-patch.yaml

Lines changed: 0 additions & 48 deletions
This file was deleted.

β€Žpackage.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@natoboram/load_env",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "A standalone implementation of Vite's loadEnv",
55
"keywords": [
66
"dotenv",
@@ -43,21 +43,21 @@
4343
"test:watch": "vitest"
4444
},
4545
"dependencies": {
46-
"dotenv": "^16.4.5"
46+
"dotenv": "^16.5.0"
4747
},
4848
"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",
5252
"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",
5858
"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"
6161
},
6262
"type": "module",
6363
"exports": {

0 commit comments

Comments
Β (0)