Skip to content

Commit

Permalink
update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
adbenitez committed Nov 15, 2024
1 parent 52e5a9d commit fa5ed97
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
branches:
- main
- master
tags:
- "v*.*.*"
pull_request:
branches:
- main
Expand All @@ -18,6 +20,7 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 20.x
registry-url: "https://registry.npmjs.org"
- run: npm install -g pnpm
- run: pnpm install
- run: pnpm check
Expand All @@ -26,3 +29,8 @@ jobs:
pnpm install
pnpm link ..
pnpm build
- name: Publish package to NPM
if: startsWith(github.ref, 'refs/tags/v')
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit fa5ed97

Please sign in to comment.