@dana180597/date-time-logger 1.0.20 → 1.0.22
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/package.json
CHANGED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
name: Publish to npm
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
schedule:
|
|
5
|
-
# Every hour
|
|
6
|
-
- cron: '0 * * * *'
|
|
7
|
-
workflow_dispatch: # Allow manual trigger
|
|
8
|
-
|
|
9
|
-
permissions:
|
|
10
|
-
contents: write
|
|
11
|
-
|
|
12
|
-
jobs:
|
|
13
|
-
publish:
|
|
14
|
-
runs-on: ubuntu-latest
|
|
15
|
-
|
|
16
|
-
steps:
|
|
17
|
-
- name: Checkout repository
|
|
18
|
-
uses: actions/checkout@v4
|
|
19
|
-
with:
|
|
20
|
-
token: ${{ secrets.GITHUB_TOKEN }}
|
|
21
|
-
|
|
22
|
-
- name: Setup Node.js
|
|
23
|
-
uses: actions/setup-node@v4
|
|
24
|
-
with:
|
|
25
|
-
node-version: '18'
|
|
26
|
-
registry-url: 'https://registry.npmjs.org'
|
|
27
|
-
|
|
28
|
-
- name: Configure git
|
|
29
|
-
run: |
|
|
30
|
-
git config user.name "github-actions[bot]"
|
|
31
|
-
git config user.email "github-actions[bot]@users.noreply.github.com"
|
|
32
|
-
|
|
33
|
-
- name: Bump patch version
|
|
34
|
-
run: |
|
|
35
|
-
npm version patch -m "Bump version to %s"
|
|
36
|
-
|
|
37
|
-
- name: Push version bump
|
|
38
|
-
run: |
|
|
39
|
-
git push
|
|
40
|
-
git push --tags
|
|
41
|
-
|
|
42
|
-
- name: Publish to npm
|
|
43
|
-
run: npm publish --access public --registry https://registry.npmjs.org/
|
|
44
|
-
env:
|
|
45
|
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|