chore(build): deploy to npm

This commit is contained in:
Elian Doran 2025-01-06 12:22:36 +02:00
parent 61e7414df6
commit 9a8ee6a714
No known key found for this signature in database
2 changed files with 18 additions and 15 deletions

View File

@ -1,21 +1,26 @@
name: Release
on:
push:
tags: v*
tags:
- 'v*'
jobs:
publish-github-registry:
publish-package:
name: Publish package
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up node & dependencies
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://npm.pkg.github.com/
cache: "npm"
- run: yarn install
- run: yarn publish
node-version: 22
registry-url: 'https://registry.npmjs.org'
always-auth: true
- run: |
corepack enable &&
corepack install
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Publish package
run: yarn publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
permissions:
packages: write
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

View File

@ -12,9 +12,6 @@
"katex"
],
"main": "src/index.ts",
"publishConfig": {
"registry": "https://npm.pkg.github.com"
},
"dependencies": {
"ckeditor5": "41.4.2"
},
@ -104,5 +101,6 @@
"hooks": {
"pre-commit": "lint-staged"
}
}
},
"packageManager": "yarn@1.22.22"
}