Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cur publish dev #10

Merged
merged 28 commits into from
Nov 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 28 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,32 @@
name: Release
name: Publish Package

on:
push:
branches: [ cur-publish ]
branches: [ cur-publish]

jobs:
release:
name: Node.js
uses: eggjs/github-actions/.github/workflows/node-release.yml@master
secrets:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GIT_TOKEN: ${{ secrets.GIT_TOKEN }}
with:
checkTest: false
install: 'npm install --legacy-peer-deps --no-package-lock --no-fund'
publish:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'

- name: Publish to npmjs
run: npm publish --//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
registry-url: https://npm.pkg.github.com

- name: Publish to GitHub Packages
run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GIT_TOKEN}}
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,11 @@ Egg's mongoose plugin.

## Notice
The plugin is a ahead version of egg-mongoose with some features not supported in the official one.

It's keep up to date with the latest version of official [egg-mongoose](https://github.com/eggjs/egg-mongoose).
The new features are not supported in the current official one. Pull Requests link: https://xgithub.com/eggjs/egg-mongoose/pull/60

The new features are not supported in the current official one but can be used with this one. Pull Requests to official one link: https://xgithub.com/eggjs/egg-mongoose/pull/60

- place the model files in a custom location
- rename the delegate property to `Context`.

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@onewalker/egg-mongoose",
"version": "4.1.3",
"version": "4.1.4",
"description": "egg mongoose plugin advanced by @oneWalker",
"eggPlugin": {
"name": "mongoose"
Expand Down
Loading