diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index a755b55..3011d0a 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -40,4 +40,7 @@ jobs: echo $BUMP >> $GITHUB_OUTPUT - name: Publish if: ${{steps.compare.outputs.BUMP == 'true'}} && github.event.pull_request.merged = true - uses: .github/workflows/publish-npm.yml + env: + NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} + run: | + npm publish diff --git a/.github/workflows/publish-npm.yml b/.github/workflows/publish-npm.yml deleted file mode 100644 index 34625e4..0000000 --- a/.github/workflows/publish-npm.yml +++ /dev/null @@ -1,30 +0,0 @@ -name: Publish to NPM -on: - workflow_call: - inputs: - working_directory: - description: "The working directory to publish from" - required: false - default: "." - type: string - package_name: - description: "The name of the package to publish" - required: true - type: string - secrets: - npm_token: - description: "The NPM token to use for publishing" - required: true - -jobs: - publish: - permissions: - contents: read - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v4 - - name: Get published package version - shell: bash - run: | - PKG_VERSION="$(npm search videx-wellog -json true | jq .[].version -r)"