Skip to content

Commit

Permalink
add github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
binjamil committed May 18, 2024
1 parent 7b6b184 commit d78fc0a
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 1 deletion.
21 changes: 21 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -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
27 changes: 27 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -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
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @mbinjamil/matomo-client

## 0.0.3

### Patch Changes

- Setup GitHub actions for CI/CD

## 0.0.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit d78fc0a

Please sign in to comment.