From cff00e9a131b6be8d1e850e27acf0ba2ecfb9d96 Mon Sep 17 00:00:00 2001 From: djereg Date: Thu, 2 May 2024 15:26:01 +0200 Subject: [PATCH] ci: publish to npm --- .github/workflows/ci.yaml | 7 +------ .github/workflows/publish.yaml | 9 +++------ package.json | 14 +++++++++++++- 3 files changed, 17 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 23cf270..d03f500 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -12,11 +12,6 @@ jobs: steps: - uses: actions/checkout@v4 - - uses: bikutadesu/create-npmrc@v1 - with: - org_name: djereg - auth_token: ${{ secrets.GITHUB_TOKEN }} - - uses: actions/setup-node@v4 with: node-version: '20' @@ -26,4 +21,4 @@ jobs: - run: npm ci --no-audit # - run: npm run lint - run: npm run build - - run: npm publish --dry-run + - run: npm publish --access public --dry-run diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 0dcb15a..96456a1 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -12,11 +12,6 @@ jobs: steps: - uses: actions/checkout@v4 - - uses: bikutadesu/create-npmrc@v1 - with: - org_name: djereg - auth_token: ${{ secrets.GITHUB_TOKEN }} - - uses: actions/setup-node@v4 with: node-version: '20' @@ -25,5 +20,7 @@ jobs: - run: npm version ${{ github.ref_name }} --no-git-tag-version --allow-same-version - run: npm ci --no-audit - run: npm run build - - run: npm publish + - run: npm publish --access public + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/package.json b/package.json index 6039c18..8d18b84 100644 --- a/package.json +++ b/package.json @@ -3,9 +3,21 @@ "version": "0.0.0", "description": "RabbitMQ module for NestJS", "author": "Györg Norbert", - "license": "MTI", + "license": "MIT", "main": "dist/index.js", "types": "dist/index.d.ts", + "repository": { + "type": "git", + "url": "git+https://github.com/djereg/nestjs-rabbitmq.git" + }, + "keywords": [ + "nestjs", + "rabbitmq" + ], + "bugs": { + "url": "https://github.com/djereg/nestjs-rabbitmq/issues" + }, + "homepage": "https://github.com/djereg/nestjs-rabbitmq#readme", "scripts": { "build": "rimraf dist && tsc", "lint": "eslint src/**/*.ts",