diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..5e0eb8e --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,11 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + build: + uses: starweb-libs/.github/.github/workflows/build.yml@v1.0.0 diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..0562c97 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,17 @@ +name: Publish + +on: + push: + tags: + - 'v*' + +jobs: + build: + uses: starweb-libs/.github/.github/workflows/build.yml@v1.0.0 + + publish: + needs: build + permissions: + contents: write + uses: starweb-libs/.github/.github/workflows/publish.yml@v1.0.0 + secrets: inherit diff --git a/README.md b/README.md index 31c8432..b9ac901 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,10 @@ YOUR-DESCRIPTION +[](https://github.com/starweb-libs/NAME/actions/workflows/ci.yml) +[](https://www.npmjs.com/package/@starweb-libs/NAME) +[](./LICENSE) + ## Tech Stack
diff --git a/package.json b/package.json
index 5a764c2..1c9ff11 100644
--- a/package.json
+++ b/package.json
@@ -19,6 +19,7 @@
"tsdown": "^0.22.0"
},
"scripts": {
+ "typecheck": "tsc --noEmit",
"build": "tsdown",
"prepare": "npm run build"
},