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.
@@ -1,32 +1,59 @@
1
-
2
-
3
- name: Node.js Package
4
-
5
- on:
6
- release:
7
- types: [created]
8
-
9
- jobs:
10
- build:
11
- runs-on: ubuntu-latest
12
- steps:
13
- - uses: actions/checkout@v4
14
- - uses: actions/setup-node@v4
15
- with:
16
- node-version: 20
17
- - run: npm ci
18
- - run: npm test
19
-
20
- publish-npm:
21
- needs: build
22
- runs-on: ubuntu-latest
23
- steps:
24
- - uses: actions/checkout@v4
25
- - uses: actions/setup-node@v4
26
- with:
27
- node-version: 20
28
- registry-url: https://registry.npmjs.org/
29
- - run: npm ci
30
- - run: npm publish
31
- env:
32
- NODE_AUTH_TOKEN: ${{secrets.npm_token}}
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.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 โ”‚