diff --git a/.github/workflows/npm.yaml b/.github/workflows/npm.yaml index 633acfa..86c3fc0 100644 --- a/.github/workflows/npm.yaml +++ b/.github/workflows/npm.yaml @@ -34,10 +34,6 @@ jobs: node-version: "20" cache: "npm" - - run: npm ci - - run: npm version --no-git-tag-version $VERSION - - run: npm run build:lib # create the ./lib directory with the files to publish - - id: semver run: | SEMVER="${{ github.event.inputs.version }}" @@ -47,6 +43,10 @@ jobs: fi echo "::set-output name=semver::${SEMVER}" + - run: npm ci + - run: npm version --no-git-tag-version "${{ steps.semver.outputs.semver }}" + - run: npm run build:lib # create the ./lib directory with the files to publish + - run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_AUTOMATION_TOKEN }}" > ./lib/.npmrc - run: |