diff --git a/.github/workflows/test_npm b/.github/workflows/test_npm new file mode 100644 index 0000000..c1edcf7 --- /dev/null +++ b/.github/workflows/test_npm @@ -0,0 +1,20 @@ +name: Node.js Package + +on: + workflow_dispatch: + +jobs: + publish-npm: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token + fetch-depth: 0 # otherwise, you will failed to push refs to dest repo: + - uses: actions/checkout@v3 + with: + node-version: 14 + registry-url: https://registry.npmjs.org/ + - run: npm list + env: + NODE_AUTH_TOKEN: ${{secrets.npm_token}}