Skip to content

Commit

Permalink
Cur publish dev (#10)
Browse files Browse the repository at this point in the history
* docs: make intro clear

* docs: update readme

* format: the ci process

* build: grammar error

* docs: make the intro more clear

* build: publish when merge cur-publish

* feat: add new version no

* build: make ci better

* build:test

* build:test

* build: test action_ref

* build: publish test

* build: publish test

* build: publish test

* build: test

* build: test

* build: test

* build: test

* build: test

* build: test

* build test

* build:test

* build:test

* build:test

* build: test

* build: complete the publish package automatically

* docs: change document
  • Loading branch information
oneWalker authored Nov 6, 2024
1 parent a74e0c0 commit 5622385
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 13 deletions.
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

0 comments on commit 5622385

Please sign in to comment.