Skip to content
This repository has been archived by the owner on Dec 6, 2024. It is now read-only.

Commit

Permalink
fix: add keywords and publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
batrdn committed Mar 3, 2024
1 parent b1f75ca commit 1f468fa
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 26 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -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
27 changes: 1 addition & 26 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Release & Publish
name: Release
on:
push:
branches:
Expand Down Expand Up @@ -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
7 changes: 7 additions & 0 deletions packages/mongoose/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@
"repository": {
"url": "https://github.com/batrdn/mocking-bird"
},
"keywords": [
"mocking-bird",
"mongoose",
"testing",
"mocking",
"fixtures"
],
"author": "batrdn",
"engines": {
"node": ">=18.*",
Expand Down

0 comments on commit 1f468fa

Please sign in to comment.