Skip to content

Commit

Permalink
fix(ci): fixing release-cli npm login
Browse files Browse the repository at this point in the history
  • Loading branch information
mahabubx7 committed Oct 15, 2024
2 parents 8b0b670 + 29cdf5a commit 768ef4e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ jobs:
- name: Install dependencies
run: npm install

- name: Configure npm for authentication
run: |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
- name: Run release-it
env:
GITHUB_TOKEN: ${{ secrets.GH_PA_TOKEN }}
Expand Down
11 changes: 8 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"dist",
"package.json",
"README.md",
"CHANGELOG.md",
"LICENSE"
],
"engines": {
Expand Down Expand Up @@ -70,8 +71,9 @@
],
"exports": {
".": {
"import": "./dist/index.mjs",
"types": "./dist/index.d.ts"
"import": "./dist/esm/lib/index.js",
"types": "./dist/index.d.ts",
"require": "./dist/index.js"
}
},
"release-it": {
Expand All @@ -87,8 +89,11 @@
"release": true
},
"npm": {
"publish": true
"publish": true,
"publishPath": "./",
"skipChecks": false
},
"ci": true,
"plugins": {
"@release-it/conventional-changelog": {
"preset": "angular"
Expand Down

0 comments on commit 768ef4e

Please sign in to comment.