Selaa lähdekoodia

feat: publish workflow

Sven 1 vuosi sitten
vanhempi
commit
fd67e47448
1 muutettua tiedostoa jossa 8 lisäystä ja 2 poistoa
  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 }}