Skip to content

Commit

Permalink
chore: added publish script
Browse files Browse the repository at this point in the history
  • Loading branch information
victorgarciaesgi committed Dec 10, 2024
1 parent 4c31850 commit b01cc68
Show file tree
Hide file tree
Showing 5 changed files with 450 additions and 32 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: npm-publish
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- run: pnpm i
- run: pnpm run publish
- run: pnpm run test
- run: pnpm run typecheck
- run: pnpm run build
- run: pnpm run npm:publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Loading

0 comments on commit b01cc68

Please sign in to comment.