Browse Source

feat: publish workflow

Sven 1 year ago
parent
commit
fd67e47448
1 changed files with 8 additions and 2 deletions
  1. 8 2
      .github/workflows/publish.yml

+ 8 - 2
.github/workflows/publish.yml

@@ -19,5 +19,11 @@ jobs:
           node-version: ${{ matrix.node-version }}
       - name: Install dependencies
         run: npm ci
-      - name: Publish to npm
-        run: echo TODO
+      - name: Create Release PR using Changesets
+        uses: changesets/action@v1
+        id: changesets
+        with:
+          publish: npm run build
+        env:
+          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+          NPM_TOKEN: ${{ secrets.NPM_TOKEN }}