diff --git a/.github/workflows/ci-pipeline.yml b/.github/workflows/ci-pipeline.yml index dcd1283..43734a9 100644 --- a/.github/workflows/ci-pipeline.yml +++ b/.github/workflows/ci-pipeline.yml @@ -96,14 +96,15 @@ jobs: uses: actions/setup-node@v4 with: node-version: 20 + registry-url: 'https://registry.npmjs.org/' cache: 'npm' - name: Build Cache uses: actions/cache@v4 with: path: dist key: build-${{ github.sha }} - - name: Npm Publish - run: npm ci && npm publish + - name: NPM Publish + run: npm publish env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - name: Github Release diff --git a/package.json b/package.json index 0bc2950..1c8eadd 100644 --- a/package.json +++ b/package.json @@ -37,13 +37,11 @@ "toc-generate": "markdown-toc -i README.md", "toc-check": "npm run toc-generate && git diff --exit-code README.md || (echo 'Error: README.md has changed after generating TOC. Please commit the changes.' && exit 1)", "scripts:update-deps": "npx npm-check --skip-unused -u", - "scripts:verify": "npm run lint && npm run prettier && npm run toc-check && npm run build && npm run test && agadoo", "scripts:check-git": "git diff-index --quiet HEAD -- || (echo 'Error: Git repository is not clean. Please commit or stash changes.' && exit 1)", "release:patch": "npm version patch", "release:minor": "npm version minor", "release:major": "npm version major", - "prepublishOnly": "npm run scripts:verify", - "preversion": "npm run scripts:check-git && git pull && npm run scripts:verify", + "preversion": "npm run scripts:check-git && git pull", "postversion": "git push && git push --tags" }, "repository": {