Skip to content

Commit 53986bc

Browse files
committed
🚑 (package.json) fix repo url
1 parent 8f6d77b commit 53986bc

File tree

2 files changed

+11
-13
lines changed

2 files changed

+11
-13
lines changed

.github/workflows/npm.yml

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,17 @@ on:
66
- master
77

88
jobs:
9-
publish:
9+
build:
1010
runs-on: ubuntu-latest
11-
steps:
12-
- name: Checkout code
13-
uses: actions/checkout@v2
14-
15-
- name: Install dependencies
16-
run: npm install
1711

18-
- name: Login to npm
12+
steps:
13+
- uses: actions/checkout@v4
14+
# Setup .npmrc file to publish to npm
15+
- uses: actions/setup-node@v4
16+
with:
17+
node-version: '20.x'
18+
registry-url: 'https://registry.npmjs.org'
19+
- run: npm ci
20+
- run: npm publish --provenance --access public
1921
env:
2022
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
21-
run: npm login --auth-type=token
22-
23-
- name: Publish to npm
24-
run: npm publish

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
},
99
"repository": {
1010
"type": "git",
11-
"url": "https://github.com/Buzut/humantime.git"
11+
"url": "git+https://github.com/Buzut/humantime.git"
1212
},
1313
"keywords": [
1414
"moment",

0 commit comments

Comments
 (0)