Skip to content

Commit

Permalink
Merge pull request #22 from JoBinsJP/feat/expose-axios-client
Browse files Browse the repository at this point in the history
Feat/expose axios client
  • Loading branch information
bedus-creation authored Feb 6, 2024
2 parents f7140bc + ff5ee1c commit 96aa5bc
Show file tree
Hide file tree
Showing 22 changed files with 1,877 additions and 2,369 deletions.
14 changes: 5 additions & 9 deletions .github/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,16 @@ npm install --workspace=packages --if-present
```

```bash
npm run build --workspace=packages --if-present
npm run build
```

##### Publish
##### Release
Then upgrade core package version in package.json
```bash
npm publish --workspace=packages --if-present
```

##### Set version
```bash
npm version minor --workspace=packages --if-present
./bin/release.sh minor
```

##### Test
```bash
npm run test --workspace=packages --if-present
npm run test
```
31 changes: 19 additions & 12 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Run Tests - Current"
name: tests

on:
push:
Expand All @@ -7,16 +7,23 @@ on:
branches: [ main ]

jobs:
build:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
adapter: [ 'core','vue2' ]
node-version: [ 14.x ]

steps:
- uses: actions/checkout@v3
- name: Testing ${{ matrix.adapter }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: cd packages/${{ matrix.adapter }} && npm install && npm run build && npm run test
- name: Checkout code
uses: actions/checkout@v4

- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x

- name: Install dependencies
run: npm install

- name: Build packages
run: npm run build

- name: Execute tests
run: npm run test
16 changes: 16 additions & 0 deletions bin/release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/usr/bin/env bash

set -e

# Make sure the release tag is provided.
if (( "$#" != 1 ))
then
echo "Version type has to be provided: major|minor|patch."

exit 1
fi

npm version $1 \
--workspace=packages/core \
--workspace=packages/vue2 \
--workspace=playgrounds/vue2
Loading

0 comments on commit 96aa5bc

Please sign in to comment.