Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -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
9 changes: 9 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Loading