Skip to content

Commit

Permalink
Prepare for GitHub package
Browse files Browse the repository at this point in the history
  • Loading branch information
Xennis committed May 24, 2024
1 parent 6ccc7a3 commit 77dc684
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 2 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/release-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Node.js Package

on:
release:
types: [created]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
#- uses: actions/setup-node@v4
# with:
# node-version: 16
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
run_install: |
- args: [--frozen-lockfile]
#- run: npm test

publish-gpr:
needs: build
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://npm.pkg.github.com/
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
run_install: |
- args: [--frozen-lockfile]
- run: pnpm publish --recursive --access=public --no-git-checks
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
dist/
node_modules/

pnpm-publish-summary.json
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@xennis:registry=https://npm.pkg.github.com
11 changes: 9 additions & 2 deletions packages/render/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
{
"name": "@react-notion-render/render",
"version": "0.0.1",
"name": "@xennis/react-notion-render",
"version": "0.0.1-alpha.1",
"description": "React renderer for Notion,",
"repository": {
"url": "https://github.com/Xennis/react-notion-render",
"directory": "packages/render"
},
"publishConfig": {
"@xennis:registry": "https://npm.pkg.github.com"
},
"author": "Xennis",
"license": "",
"main": "dist/index.js",
Expand Down

0 comments on commit 77dc684

Please sign in to comment.