From f9eaa0f378b9675648d5c84acdfdc1d18d0b4767 Mon Sep 17 00:00:00 2001 From: Ashish Modi Date: Tue, 29 Oct 2024 10:30:20 +0000 Subject: [PATCH] Create test_npm --- .github/workflows/test_npm | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/test_npm 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}}