diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml deleted file mode 100644 index 859e17e..0000000 --- a/.github/workflows/npm-publish.yml +++ /dev/null @@ -1,30 +0,0 @@ -name: npm publish - -on: - release: - types: [created] - -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: 20 - - run: npm ci - - run: npm test - - publish-npm: - needs: build - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: 20 - registry-url: https://registry.npmjs.org/ - - run: npm ci - - run: npm publish - env: - NODE_AUTH_TOKEN: ${{secrets.npm_token}} diff --git a/package.json b/package.json index 287d0da..bb6bdd0 100644 --- a/package.json +++ b/package.json @@ -11,11 +11,11 @@ }, "scripts": { "dev": "vitest", - "release": "npx np", + "release": "npm run changelog && npx np", "docs": "node ./docs-src", "lint": "biome lint ./src ./scripts", "test": "vitest run --coverage", - "version": "conventional-changelog -i CHANGELOG.md -s -r 0 && git add CHANGELOG.md" + "changelog": "conventional-changelog -i CHANGELOG.md -s -r 0 && git add CHANGELOG.md && git commit -m 'chore: update changelog.md' && git push" }, "keywords": [ "posthtml",