Skip to content

Commit

Permalink
chore(ci): Configure autopublish (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 authored Jun 29, 2024
1 parent eb6f468 commit 8d80e74
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Publish (npm)

on:
push:
branches:
- main
- ci

env:
CI: 1

jobs:
publish-npm:
name: Publish to npm
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup node
uses: actions/setup-node@v2
with:
node-version: 20

- run: |
corepack enable
pnpm i
- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
publish: pnpm publish -r --access public
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 8d80e74

Please sign in to comment.