Skip to content

Commit

Permalink
feat: add publisher
Browse files Browse the repository at this point in the history
  • Loading branch information
motoya-k committed Dec 10, 2023
1 parent 5f4bf30 commit dcd6de0
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 9 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Publish

on:
release:
types: [created]

jobs:
publish:
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
registry-url: https://npm.pkg.github.com/

- name: Package install
run: pnpm install --frozen-lockfile

- name: Update package.json version
uses: jossef/action-set-json-field@v1
with:
file: packages/core/package.json
field: version
value: ${{ github.event.release.name }}

- name: Publish package
run: pnpm run release
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18 changes: 9 additions & 9 deletions packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "novel",
"name": "@sheinc/novel",
"version": "0.1.22",
"description": "Notion-style WYSIWYG editor with AI-powered autocompletions",
"license": "Apache-2.0",
"license": "UNLICENSED",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
Expand Down Expand Up @@ -76,14 +76,10 @@
"tsup": "^7.2.0",
"typescript": "^4.9.4"
},
"author": "Steven Tey <stevensteel97@gmail.com>",
"homepage": "https://novel.sh",
"repository": {
"type": "git",
"url": "git+https://github.com/steven-tey/novel.git"
},
"bugs": {
"url": "https://github.com/steven-tey/novel/issues"
"url": "git+https://github.com/sheinc/novel.git"
},
"keywords": [
"ai",
Expand All @@ -92,5 +88,9 @@
"markdown",
"nextjs",
"react"
]
}
],
"publishConfig": {
"access": "restricted",
"registry": "https://npm.pkg.github.com/sheinc"
}
}

0 comments on commit dcd6de0

Please sign in to comment.