diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index ae6cacc..6a9dd89 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -1,20 +1,22 @@ -name: Node.js Package +name: Publish Package on: release: - types: [created] + types: [published] + +permissions: + id-token: write + contents: read jobs: publish-npm: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: node-version: 24 registry-url: https://registry.npmjs.org/ - run: npm ci - run: npm run build - - run: npm publish --access public - env: - NODE_AUTH_TOKEN: ${{secrets.npm_token}} + - run: npm publish --access public \ No newline at end of file diff --git a/package.json b/package.json index 77e5d1f..8a53de8 100644 --- a/package.json +++ b/package.json @@ -2,10 +2,19 @@ "name": "@qavajs/html-formatter", "version": "1.1.0", "main": "formatter/formatter.js", + "repository": { + "type": "git", + "url": "git+https://github.com/qavajs/html-formatter.git" + }, "authors": [ "Alexandr Galichenko", "Alexandr Legchilov" ], + "license": "MIT", + "bugs": { + "url": "https://github.com/qavajs/html-formatter/issues" + }, + "homepage": "https://github.com/qavajs/html-formatter#readme", "scripts": { "prebuild": "qavajs run --config test/report.ts --profile json --no-error-exit", "report:generate": "qavajs run --config test/report.ts --no-error-exit",