Skip to content

package-publish

package-publish #32

name: package-publish
on: workflow_dispatch
jobs:
package-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
scope: '@onekeyfe'
- name: Install Package
run: yarn
- name: Build
run: yarn prepare
- name: Publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

Check failure on line 22 in .github/workflows/package-publish.yml

View workflow run for this annotation

GitHub Actions / package-publish

Invalid workflow file

The workflow is not valid. .github/workflows/package-publish.yml (Line: 22, Col: 11): 'NODE_AUTH_TOKEN' is already defined
YARN_NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm whoami && yarn npm publish