How can I publish Npm Package to custom JFrog artifactory using Github action?
publish:
name: Publish the Packages
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ env.NODE_VERSION }}
registry-url: ${{ env.ARTIFACTORY_URL }}
- name: Publish Packages
run: npm publish
working-directory: ${{ env.CORE_WORKING_DIR }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
The above one is giving 401 error. Is it the right approach to do or we've to use some third party actions?