Skip to content

Commit

Permalink
🚑 (package.json) fix repo url
Browse files Browse the repository at this point in the history
  • Loading branch information
Buzut committed Nov 15, 2024
1 parent 8f6d77b commit 4e3d2d0
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 13 deletions.
27 changes: 15 additions & 12 deletions .github/workflows/npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,22 @@ on:
- master

jobs:
publish:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
permissions:
contents: read
id-token: write

- name: Install dependencies
run: npm install
steps:
- uses: actions/checkout@v4
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
always-auth: true
scope: '@buzut'

- name: Login to npm
- run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm login --auth-type=token

- name: Publish to npm
run: npm publish
NODE_AUTH_TOKEN: ${{ secrets.NPM_SECRET }}
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"repository": {
"type": "git",
"url": "https://github.com/Buzut/humantime.git"
"url": "git+https://github.com/Buzut/humantime.git"
},
"keywords": [
"moment",
Expand All @@ -27,5 +27,8 @@
},
"devDependencies": {
"prettier": "^3.3.3"
},
"publishConfig": {
"access": "public"
}
}

0 comments on commit 4e3d2d0

Please sign in to comment.