chore: add release action

This commit is contained in:
Dominik Biedebach 2022-09-10 21:50:06 +02:00
parent 8ad10ce0a6
commit 83a8bef036

20
.github/workflows/publish.yml vendored Normal file
View File

@ -0,0 +1,20 @@
name: Publish tiptap packages to npm
on:
release:
types:
- created
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: "https://registry.npmjs.org"
- name: Install node dependencies
run: npm ci
- name: Publish to npm registry
run: npm run publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}