Skip to content

Commit

Permalink
chore: resolve some human errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mzrtamp committed Aug 5, 2024
1 parent 97aa904 commit 17220c3
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 9 deletions.
37 changes: 35 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,38 @@ on:

jobs:
publish:
uses: stegripe/workflows/.github/workflows/pnpm-publish.yaml@main
secrets: inherit
runs-on: ubuntu-latest
strategy:
matrix:
include:
- registry: https://registry.npmjs.org/
token_secret_key: NPM_TOKEN
- registry: https://npm.pkg.github.com/
token_secret_key: GITHUB_TOKEN
steps:
- name: Checkout repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
fetch-depth: 2

- name: Setup pnpm
uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0

- name: Setup Node.js
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
with:
node-version-file: .node-version
check-latest: true
cache: "pnpm"
registry-url: ${{ matrix.registry }}

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Compile/Build TypeScript project if present
run: pnpm run --if-present build

- name: Publish package to NPM and GitHub packages registry
run: pnpm run release
env:
NODE_AUTH_TOKEN: ${{ secrets[matrix.token_secret_key] }}
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
## A bunch of plugins for the Sapphire Framework that used we used in our projects.

[![GitHub](https://img.shields.io/github/license/stegripe/sapphire-plugins)](https://github.com/stegripe/sapphire-plugins/blob/main/LICENSE.md)
<a href="https://www.npmjs.com/package/@stegripe/sapphire-plugins">
<img src="https://img.shields.io/npm/v/@stegripe/sapphire-plugins?maxAge=3600" alt="npm version" ></a>
<img src="https://img.shields.io/npm/dt/@stegripe/sapphire-plugins?maxAge=3600" alt="npm downloads">

</div>

Expand Down
3 changes: 3 additions & 0 deletions packages/command-context/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
**Plugin for [**`@sapphire/framework`**](https://github.com/sapphire/framework) used to handle Message & Interaction Command in a single context.**

[![GitHub](https://img.shields.io/github/license/stegripe/sapphire-plugins)](https://github.com/stegripe/sapphire-plugins/blob/main/LICENSE.md)
<a href="https://www.npmjs.com/package/@stegripe/command-context">
<img src="https://img.shields.io/npm/v/@stegripe/command-context?maxAge=3600" alt="npm version" ></a>
<img src="https://img.shields.io/npm/dt/@stegripe/command-context?maxAge=3600" alt="npm downloads">

</div>

Expand Down
6 changes: 3 additions & 3 deletions packages/command-context/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
"author": "Stegripe Development <[email protected]>",
"repository": {
"type": "git",
"url": "git+https://github.com/stegripe/template.git"
"url": "git+https://github.com/stegripe/sapphire-plugins.git"
},
"bugs": {
"url": "https://github.com/stegripe/template/issues"
"url": "https://github.com/stegripe/sapphire-plugins/issues"
},
"homepage": "https://github.com/stegripe/template#readme",
"homepage": "https://docs.stegripe.org/modules/_stegripe_command_context.html",
"main": "dist/index.js",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
Expand Down
3 changes: 3 additions & 0 deletions packages/pino-logger/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
**Plugin for [**`@sapphire/framework`**](https://github.com/sapphire/framework) used to handle logging with Pino.**

[![GitHub](https://img.shields.io/github/license/stegripe/sapphire-plugins)](https://github.com/stegripe/sapphire-plugins/blob/main/LICENSE.md)
<a href="https://www.npmjs.com/package/@stegripe/pino-logger">
<img src="https://img.shields.io/npm/v/@stegripe/pino-logger?maxAge=3600" alt="npm version" ></a>
<img src="https://img.shields.io/npm/dt/@stegripe/pino-logger?maxAge=3600" alt="npm downloads">

</div>

Expand Down
2 changes: 1 addition & 1 deletion packages/pino-logger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"bugs": {
"url": "https://github.com/stegripe/sapphire-plugins/issues"
},
"homepage": "https://github.com/stegripe/sapphire-plugins#readme",
"homepage": "https://docs.stegripe.org/modules/_stegripe_pino_logger.html",
"main": "dist/index.js",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
Expand Down

0 comments on commit 17220c3

Please sign in to comment.