How to publish an built package to npm registry npmjs.com?

Hi, I’m new to Travis CI, I’ve been trying to setup my small project for auto build and publish to npmjs. This is my .travis.yml:

language: node_js
node_js:
  - "20"

dist: jammy

cache:
  directories:
    - ~/.npm
    - ~/.cache

jobs:
  include:
    - stage: install-build
      name: Install And Build
      script:
        - npm install -g yarn
        - yarn set version latest
        - yarn install
        - yarn tsc -b

    - stage: deploy
      name: publish to npmjs.com
      deploy:
        provider: npm
        email: "xxxxx@xxxxx.com"
        api_token: $npmToken
        cleanup: false

and the npmToken has been configured in CI’s settings. But when I triggered a Job, it goes well but showed this:

,

What should I do to configure the things to let them work correctly? Thanks.