- name: Setup Node
uses: actions/setup-node@v2
with:
- node-version: 14
+ node-version: '16.x'
- name: Install
run: npm ci
- name: Setup Node
uses: actions/setup-node@v2
with:
- node-version: 14
+ node-version: '16.x'
registry-url: https://registry.npmjs.org/
- name: Read package.json version
if: ${{ contains(steps.package-version.outputs.version, '-') == false }}
run: npm publish
env:
- NODE_AUTH_TOKEN: ${{secrets.npm_token}}
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish Beta
if: ${{ contains(steps.package-version.outputs.version, 'beta') }}
run: npm publish --tag beta
env:
- NODE_AUTH_TOKEN: ${{secrets.npm_token}}
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}