Skip to content

Commit 0c22e6a

Browse files
committed
prepare for release
Signed-off-by: rishichawda <[email protected]>
1 parent 14c8605 commit 0c22e6a

File tree

2 files changed

+42
-9
lines changed

2 files changed

+42
-9
lines changed

.github/workflows/release.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Publish to npm
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
13+
- name: Setup Node.js
14+
uses: actions/setup-node@v3
15+
with:
16+
node-version: '22'
17+
registry-url: 'https://registry.npmjs.org/'
18+
always-auth: true
19+
20+
- name: Install dependencies
21+
run: yarn
22+
23+
- name: Build package
24+
run: yarn build # Remove or adjust if your package doesn't need building
25+
26+
- name: Publish package
27+
run: npm publish --access public
28+
env:
29+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,24 @@
11
{
22
"name": "remark-notes-plugin",
3-
"version": "0.0.1",
3+
"version": "1.0.0",
44
"description": "A remark plugin that transforms markdown quotes into styled note elements",
5+
"license": "MIT",
6+
"bugs": {
7+
"url": "https://github.com/rishichawda/remark-notes-plugin/issues"
8+
},
9+
"homepage": "https://github.com/rishichawda/remark-notes-plugin#readme",
10+
"author": "rishichawda",
11+
"repository": {
12+
"url": "https://github.com/rishichawda/remark-notes-plugin.git"
13+
},
514
"type": "module",
615
"main": "dist/index.js",
716
"types": "dist/index.d.ts",
817
"files": [
9-
"dist",
10-
"styles.css"
18+
"dist/",
19+
"LICENSE",
20+
"README.md"
1121
],
12-
"exports": {
13-
".": "./dist/index.js",
14-
"./styles.css": "./styles.css"
15-
},
1622
"scripts": {
1723
"build:ts": "tsc",
1824
"watch:ts": "tsc -w",
@@ -29,8 +35,6 @@
2935
"notes",
3036
"astro"
3137
],
32-
"author": "",
33-
"license": "MIT",
3438
"dependencies": {
3539
"hast-util-to-html": "^9.0.5",
3640
"mdast": "^3.0.0",

0 commit comments

Comments
 (0)