From 1f468fa281731931aecdea045260dd9438ad4616 Mon Sep 17 00:00:00 2001 From: batrdn Date: Sun, 3 Mar 2024 12:54:33 +0100 Subject: [PATCH] fix: add keywords and publish workflow --- .github/workflows/publish.yml | 29 +++++++++++++++++++++++++++++ .github/workflows/release.yml | 27 +-------------------------- packages/mongoose/package.json | 7 +++++++ 3 files changed, 37 insertions(+), 26 deletions(-) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..72349fd --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,29 @@ +name: Publish +on: + push: + tags: + - '@mocking-bird/**' +jobs: + publish: + name: Publish + runs-on: ubuntu-latest + permissions: + contents: read + id-token: write + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Install Node + uses: actions/setup-node@v4 + with: + node-version: 20 + registry-url: https://registry.npmjs.org/ + - name: Install dependencies + run: npm i + - name: Release packages + run: npx nx release publish + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + NPM_CONFIG_PROVENANCE: true diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 20e5df4..8d0c82d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,4 +1,4 @@ -name: Release & Publish +name: Release on: push: branches: @@ -34,28 +34,3 @@ jobs: run: npx nx release --skip-publish env: GH_TOKEN: ${{ github.token }} - - publish: - name: Publish - runs-on: ubuntu-latest - needs: release - permissions: - contents: read - id-token: write - steps: - - name: Checkout repository - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: Install Node - uses: actions/setup-node@v4 - with: - node-version: 20 - registry-url: https://registry.npmjs.org/ - - name: Install dependencies - run: npm i - - name: Release packages - run: npx nx release publish - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - NPM_CONFIG_PROVENANCE: true diff --git a/packages/mongoose/package.json b/packages/mongoose/package.json index ca96eec..6fa8f23 100644 --- a/packages/mongoose/package.json +++ b/packages/mongoose/package.json @@ -6,6 +6,13 @@ "repository": { "url": "https://github.com/batrdn/mocking-bird" }, + "keywords": [ + "mocking-bird", + "mongoose", + "testing", + "mocking", + "fixtures" + ], "author": "batrdn", "engines": { "node": ">=18.*",