Skip to content

Commit

Permalink
Prepare publish
Browse files Browse the repository at this point in the history
  • Loading branch information
henrmota committed Oct 22, 2024
1 parent 8bad559 commit 19fed03
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
23 changes: 23 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Publish to npm

on:
push:
branches:
- main

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: '22.8.0'
registry-url: 'https://registry.npmjs.org/'
- name: Install pnpm
run: npm install -g pnpm
- run: pnpm install
- run: npm version patch
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
{
"name": "shiki-mdx",
"version": "1.0.0",
"version": "0.0.1",
"main": "./dist/index.js",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"files": [
"/dist",
"package.json"
],
"repository": {
"type": "git",
"url": "https://github.com/henrmota/shiki-mdx"
},
"scripts": {
"build": "tsc && tsc --project tsconfig.cjs.json",
"watch": "tsc -w && tsc -w --project tsconfig.cjs.json",
Expand Down
Empty file added readme.md
Empty file.

0 comments on commit 19fed03

Please sign in to comment.