From 83a8bef0363ddb7af0fb38dd4c5c662e0d1d844a Mon Sep 17 00:00:00 2001 From: Dominik Biedebach Date: Sat, 10 Sep 2022 21:50:06 +0200 Subject: [PATCH] chore: add release action --- .github/workflows/publish.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 00000000..c9dbf792 --- /dev/null +++ b/.github/workflows/publish.yml @@ -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 }}