git-push-time 1.1.2 โ 1.1.3
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/npm-publish.yml +59 -32
- package/README.md +1 -1
- package/bin/index.js +322 -339
- package/lib/commands/edit-time.js +141 -141
- package/lib/commands/fix.js +113 -113
- package/lib/commands/github.js +429 -445
- package/lib/commands/pull.js +90 -90
- package/lib/commands/push.js +720 -720
- package/lib/config.js +220 -220
- package/lib/fix.js +286 -286
- package/lib/git.js +525 -516
- package/lib/github.js +322 -322
- package/lib/secrets.js +92 -92
- package/lib/ui.js +1060 -1063
- package/lib/utils.js +120 -120
- package/package.json +36 -36
|
@@ -1,32 +1,59 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
-
|
|
25
|
-
|
|
26
|
-
with:
|
|
27
|
-
node-version: 20
|
|
28
|
-
registry-url: https://registry.npmjs.org/
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
1
|
+
name: Publish to npm
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- master
|
|
7
|
+
|
|
8
|
+
permissions:
|
|
9
|
+
contents: write
|
|
10
|
+
|
|
11
|
+
concurrency:
|
|
12
|
+
group: npm-publish-master
|
|
13
|
+
cancel-in-progress: false
|
|
14
|
+
|
|
15
|
+
jobs:
|
|
16
|
+
publish:
|
|
17
|
+
runs-on: ubuntu-latest
|
|
18
|
+
steps:
|
|
19
|
+
- name: Check out repository
|
|
20
|
+
uses: actions/checkout@v4
|
|
21
|
+
with:
|
|
22
|
+
fetch-depth: 0
|
|
23
|
+
|
|
24
|
+
- name: Set up Node.js
|
|
25
|
+
uses: actions/setup-node@v4
|
|
26
|
+
with:
|
|
27
|
+
node-version: 20
|
|
28
|
+
registry-url: https://registry.npmjs.org/
|
|
29
|
+
|
|
30
|
+
# Earlier queued runs may have checked out a commit from before the
|
|
31
|
+
# previous publish job's version bump. Rebase before changing versions.
|
|
32
|
+
- name: Sync with master
|
|
33
|
+
run: |
|
|
34
|
+
git fetch origin master
|
|
35
|
+
git rebase origin/master
|
|
36
|
+
|
|
37
|
+
- name: Install dependencies and validate package
|
|
38
|
+
run: |
|
|
39
|
+
npm ci
|
|
40
|
+
npm pack --dry-run
|
|
41
|
+
|
|
42
|
+
- name: Increment patch version
|
|
43
|
+
id: version
|
|
44
|
+
run: |
|
|
45
|
+
npm version patch --no-git-tag-version
|
|
46
|
+
node -e 'const fs = require("node:fs"); fs.appendFileSync(process.env.GITHUB_OUTPUT, `version=${require("./package.json").version}\n`);'
|
|
47
|
+
|
|
48
|
+
- name: Publish package
|
|
49
|
+
run: npm publish
|
|
50
|
+
env:
|
|
51
|
+
NODE_AUTH_TOKEN: ${{ secrets.npm_token }}
|
|
52
|
+
|
|
53
|
+
- name: Save published version to master
|
|
54
|
+
run: |
|
|
55
|
+
git config user.name "github-actions[bot]"
|
|
56
|
+
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
|
57
|
+
git add package.json package-lock.json
|
|
58
|
+
git commit -m "chore: release v${{ steps.version.outputs.version }} [skip ci]"
|
|
59
|
+
git push origin HEAD:master
|
package/README.md
CHANGED
|
@@ -89,7 +89,7 @@ githubcli
|
|
|
89
89
|
## ๐ฅ๏ธ Giao diแปn
|
|
90
90
|
|
|
91
91
|
```text
|
|
92
|
-
โญโโโโโโโโโโโโโโโ git-push-time v1.1.
|
|
92
|
+
โญโโโโโโโโโโโโโโโ git-push-time v1.1.2 โโโโโโโโโโโโโโโโฎ
|
|
93
93
|
โ โฒ Folder E:\my-project โ
|
|
94
94
|
โ โ Branch main โ 5 file thay ฤแปi โ
|
|
95
95
|
โ โ GitHub @username โ ฤรฃ ฤฤng nhแบญp โ
|