Skip to content

Commit

Permalink
npm publish
Browse files Browse the repository at this point in the history
  • Loading branch information
leirock committed May 27, 2022
1 parent 4c13076 commit c80a532
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 3 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Publish Package to npmjs
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v3
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
# Defaults to the user or organization that owns the workflow file
scope: '@leirock'
- run: yarn
- run: yarn publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
## Install

```bash
npm install leirock/hexo-next-artalk
npm install hexo-next-artalk
```

## Configure
Expand Down Expand Up @@ -40,4 +40,10 @@ artalk:

# Comments count
commentCount: true

# Dark mode
darkMode: auto

# Use backend to config
# useBackendConf: true
```
6 changes: 6 additions & 0 deletions default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,9 @@ artalk:

# Comments count
commentCount: true

# Dark mode
darkMode: auto

# Use backend to config
# useBackendConf: true
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,16 @@
"keywords": [
"Hexo",
"NexT",
"Artalk"
"Artalk",
"comment"
],
"homepage": "https://github.com/leirock/hexo-next-artalk/#readme",
"bugs": {
"url": "https://github.com/leirock/hexo-next-artalk/issues"
},
"repository": {
"url": "https://github.com/leirock/hexo-next-artalk"
"type": "git",
"url": "https://github.com/leirock/hexo-next-artalk.git"
},
"license": "MIT",
"author": "leirock <zdlzj@foxmail.com>",
Expand Down

0 comments on commit c80a532

Please sign in to comment.