Skip to content

Commit

Permalink
Add github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrkulpinski committed Sep 11, 2023
1 parent 2f05826 commit 532c55f
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: "🚀 Npm Publish"

on:
push:
branches: main

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "18"
- run: npm ci
- run: npm test
- uses: JS-DevTools/npm-publish@v2
with:
token: ${{ secrets.NPM_TOKEN }}
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
"name": "Piotr Kulpinski",
"url": "https://kulpinski.co"
},
"repository": {
"type": "git",
"url": "https://github.com/curious-leaf/utils.git"
},
"scripts": {
"build": "bun build ./index.ts --outdir ./dist"
},
Expand Down

0 comments on commit 532c55f

Please sign in to comment.