From 10410d61c91baccbde37d637429927a49125e17e Mon Sep 17 00:00:00 2001 From: Michelle Laurenti Date: Mon, 12 Feb 2024 16:43:53 +0100 Subject: [PATCH] setup publishing --- .github/workflows/release.yml | 21 +++++++++++++++++++++ package.json | 8 ++++++-- 2 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..0fe2dc0 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,21 @@ +name: release +on: + push: + tags: + - "*" +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: jdx/mise-action@v2 + - uses: actions/setup-node@v4 + with: + registry-url: https://registry.npmjs.org/ + scope: "@moveaxlab" + - run: yarn + - run: yarn test + - run: yarn build + - run: yarn publish + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/package.json b/package.json index 26557fd..3776158 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { - "name": "@moveax/nestjs-security", - "version": "1.0.0", + "name": "@moveaxlab/nestjs-security", + "version": "10.0.0", "description": "A NestJS library to handle JWT authentication for web and mobile apps.", "authors": [ "Michelle Laurenti " @@ -10,6 +10,10 @@ "types": "./types/index.d.ts", "license": "MIT", "sideEffects": false, + "publishConfig": { + "access": "public", + "registry": "https://registry.npmjs.org/" + }, "scripts": { "build": "npm-run-all build:*", "build:cjs": "npm-run-all build:cjs:*",