Skip to content

Update publish.yml

Update publish.yml #5

Workflow file for this run

name: "publish npm"
on: push
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: node
uses: actions/setup-node@v4
with:
node-version: 18
registry-url: https://registry.npmjs.org
- name: publish
run: npm publish --access public #--otp=${{ secrets.NPM_OTP }}
working-directory: .
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
#NPM_OTP: ${{ secrets.NPM_OTP }}