diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..81c9954 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,21 @@ +name: Build +on: + push: + branches: + - "**" + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: pnpm/action-setup@v2 + with: + version: 9 + - uses: actions/setup-node@v2 + with: + node-version: 18.x + cache: "pnpm" + + - run: pnpm install --frozen-lockfile + - run: pnpm run typecheck && pnpm run build diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..370d127 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,27 @@ +name: Publish +on: + push: + branches: + - "main" + +concurrency: ${{ github.workflow }}-${{ github.ref }} + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: pnpm/action-setup@v2 + with: + version: 9 + - uses: actions/setup-node@v2 + with: + node-version: 18.x + cache: "pnpm" + + - run: pnpm install --frozen-lockfile + - name: Create release pull request + id: changesets + uses: changesets/action@v1 + with: + publish: pnpm run build diff --git a/CHANGELOG.md b/CHANGELOG.md index 40f3173..359db02 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # @mbinjamil/matomo-client +## 0.0.3 + +### Patch Changes + +- Setup GitHub actions for CI/CD + ## 0.0.2 ### Patch Changes diff --git a/package.json b/package.json index 03bb5d7..50f1fc1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@mbinjamil/matomo-client", - "version": "0.0.2", + "version": "0.0.3", "description": "A thin wrapper around Matomo analytics", "keywords": [ "analytics"