diff --git a/.github/workflows/publish.yml b/.github/workflows/publish-jsr.yml similarity index 90% rename from .github/workflows/publish.yml rename to .github/workflows/publish-jsr.yml index 63a9d21..f183df6 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish-jsr.yml @@ -1,5 +1,3 @@ -# .github/workflows/publish.yml - name: Publish on: diff --git a/.github/workflows/publish-npm.yml b/.github/workflows/publish-npm.yml new file mode 100644 index 0000000..4691ef8 --- /dev/null +++ b/.github/workflows/publish-npm.yml @@ -0,0 +1,29 @@ +name: Release components package + +on: + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + - uses: pnpm/action-setup@v4 + name: Install pnpm + - name: Install Node.js + uses: actions/setup-node@v3 + with: + node-version-file: ".nvmrc" + cache: pnpm + registry-url: https://registry.npmjs.org + - name: Install dependencies + run: pnpm install --frozen-lockfile + - name: Publish + run: pnpm publish:npm + working-directory: lib + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}