Skip to content

Commit 20017cb

Browse files
committed
Ready to publish.
1 parent cfedb6a commit 20017cb

File tree

11 files changed

+1833
-1669
lines changed

11 files changed

+1833
-1669
lines changed

.eslintrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
}],
3838
"@typescript-eslint/comma-dangle": ["error", "never"],
3939
"@typescript-eslint/no-array-constructor": "off",
40+
"@typescript-eslint/no-explicit-any": "off",
4041
"@typescript-eslint/no-inferrable-types": "off",
4142
"@typescript-eslint/no-non-null-assertion": "off",
4243
"@typescript-eslint/no-unsafe-argument": "off",

.github/workflows/publish.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
3+
4+
name: Publish package to NPM and Github Packages
5+
6+
on:
7+
release:
8+
types: [created]
9+
10+
jobs:
11+
publish-npm:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v3
15+
- uses: actions/setup-node@v3
16+
with:
17+
node-version: '18.x'
18+
registry-url: https://registry.npmjs.org/
19+
scope: '@marchingy'
20+
- run: npm install
21+
- run: npm publish --access=public
22+
env:
23+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
24+
25+
publish-github:
26+
runs-on: ubuntu-latest
27+
permissions:
28+
contents: read
29+
packages: write
30+
steps:
31+
- uses: actions/checkout@v3
32+
- uses: actions/setup-node@v3
33+
with:
34+
node-version: '18.x'
35+
registry-url: 'https://npm.pkg.github.com'
36+
scope: '@marching'
37+
- run: npm install
38+
- run: npm publish --access=public
39+
env:
40+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.npmignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
src
2+
3+
.github
24
.husky
35
.vscode
46
.eslintrc.json
57
.lintstagedrc.json
68
.prettierrc
79
jestconfig.json
810
package-lock.json
9-
tsconfig.json
11+
tsconfig.json
12+
tsconfig.spec.json
13+
tsconfig.src.json

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ Including:
1616

1717
<br />
1818

19-
> Note: 20/1/1985 is earlier than the date that the standard was defined on, this date should be a leap month 12 according to astronomy, but it is a first month of chinese calendar in real world.
20-
2119
<br />
2220

2321
### API
2422

23+
#### class ChineseDate(inherit native Date)
24+
2525
#### __calcSunEclipticLongitude(time: Date): number__
2626
Calculate sun ecliptic longitude at the time.
2727

0 commit comments

Comments
 (0)