Skip to content

Commit

Permalink
chore(release): fix auth issue during npm publish
Browse files Browse the repository at this point in the history
  • Loading branch information
tinesoft committed Mar 26, 2024
1 parent 1899e50 commit e9ea40e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/actions/install-dependencies/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ runs:
with:
node-version: ${{ inputs.node-version }}
cache: 'pnpm'
registry-url: 'https://registry.npmjs.org'

- name: Cache node_modules
id: cache-modules
Expand Down
1 change: 1 addition & 0 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ runs:
with:
node-version: ${{ inputs.node-version }}
cache: 'pnpm'
registry-url: 'https://registry.npmjs.org'

- name: Setup Java
uses: actions/setup-java@v4
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/commintlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ jobs:
commitlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Checkout Repo
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: wagoid/commitlint-github-action@v5
- name: Lint the commit
uses: wagoid/commitlint-github-action@v5
with:
configFile: '.commitlintrc.js'
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
env:
HUSKY: '0' # By default do not run HUSKY install
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_CONFIG_PROVENANCE: true
run: |
pnpm nx release --yes

0 comments on commit e9ea40e

Please sign in to comment.