Skip to content

Commit

Permalink
Merge branch 'main' into next
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarosabu committed Aug 22, 2024
2 parents e49e1cf + b1b72c4 commit cf20a2b
Show file tree
Hide file tree
Showing 44 changed files with 5,986 additions and 13,259 deletions.
40 changes: 20 additions & 20 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,24 @@ jobs:
runs-on: ubuntu-latest
environment: test
steps:
- uses: actions/checkout@v3
- name: Checkout
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: pnpm
- name: Install dependencies
run: pnpm install
- run: pnpm run lint
- run: pnpm run prettier . --check
- name: Sets all variables to unit tests
env:
VITE_ACCESS_TOKEN: ${{ secrets.VITE_ACCESS_TOKEN }}
VITE_OAUTH_TOKEN: ${{ secrets.VITE_OAUTH_TOKEN }}
VITE_SPACE_ID: ${{ vars.VITE_SPACE_ID }}
run: pnpm run test

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: "^18.4.0"
cache: "npm"

- name: Install dependencies
run: npm ci
- run: npm run lint
- run: npm run prettier -- --check

- name: Sets all variables to unit tests
env:
VITE_ACCESS_TOKEN: ${{ secrets.VITE_ACCESS_TOKEN }}
VITE_OAUTH_TOKEN: ${{ secrets.VITE_OAUTH_TOKEN }}
VITE_SPACE_ID: ${{ vars.VITE_SPACE_ID }}
run: npm run test

- run: npm run build
- run: pnpm run build
16 changes: 8 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@ jobs:
environment: production

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup Node
uses: actions/setup-node@v3
- name: Setup pnpm
uses: pnpm/action-setup@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: 18.x
node-version: ${{ matrix.node-version }}
cache: pnpm

- name: Install
run: npm install
- name: Install dependencies
run: pnpm install

- name: Semantic Release
env:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ test.js
test.ts
test-manager.js
dist/
example-dist/
*.log
.DS_Store
.nuxt
Expand Down
18 changes: 18 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script src="./dist/index.umd.js"></script>

<title>Storyblok-js-client - Vanilla</title>
</head>
<body>
<div id="app"></div>
<script>
const client = new StoryblokJSClient({})
console.log(client)
</script>
</body>
</html>
Loading

0 comments on commit cf20a2b

Please sign in to comment.