Skip to content

Commit

Permalink
ci: trying to set npm config with auth_token
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarosabu committed Sep 6, 2024
1 parent d0b56f2 commit a718570
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,14 @@ jobs:
uses: pnpm/action-setup@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
- name: git config
- name: Initialize Git User
run: |
git config user.name "${GITHUB_ACTOR}"
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
git config user.email "[email protected]"
- name: Initialise the NPM config
run: npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Install dependencies
run: pnpm install
- name: Release
Expand Down
3 changes: 3 additions & 0 deletions .release-it.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
"infile": "CHANGELOG.md"
}
},
"npm": {
"publish": true
},
"hooks": {
"before:init": ["pnpm run lint", "pnpm test:ci"],
"after:bump": "pnpm run build",
Expand Down

0 comments on commit a718570

Please sign in to comment.