Skip to content

Commit 5460fff

Browse files
author
kerkness
committed
first
1 parent eb9bfa9 commit 5460fff

File tree

12 files changed

+2061
-19
lines changed

12 files changed

+2061
-19
lines changed

.github/workflows/build.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# GitHub Actions Workflow (.github/workflows/build.yml)
2+
name: Build and Test
3+
4+
on:
5+
push:
6+
branches: [ main, develop ]
7+
pull_request:
8+
branches: [ main ]
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
14+
strategy:
15+
matrix:
16+
node-version: [16.x, 18.x, 20.x]
17+
18+
steps:
19+
- uses: actions/checkout@v3
20+
21+
- name: Use Node.js ${{ matrix.node-version }}
22+
uses: actions/setup-node@v3
23+
with:
24+
node-version: ${{ matrix.node-version }}
25+
cache: 'npm'
26+
27+
- name: Install dependencies
28+
run: npm ci
29+
30+
- name: Build package
31+
run: npm run build
32+
33+
- name: Upload build artifacts
34+
uses: actions/upload-artifact@v3
35+
with:
36+
name: dist-files
37+
path: dist/
38+

.github/workflows/release.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Release workflow (.github/workflows/release.yml)
2+
name: Release
3+
4+
on:
5+
push:
6+
tags:
7+
- 'v*'
8+
9+
jobs:
10+
release:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v3
15+
16+
- name: Use Node.js 18
17+
uses: actions/setup-node@v3
18+
with:
19+
node-version: 18
20+
cache: 'npm'
21+
registry-url: 'https://registry.npmjs.org'
22+
23+
- name: Install dependencies
24+
run: npm ci
25+
26+
- name: Build package
27+
run: npm run build
28+
29+
- name: Publish to NPM
30+
run: npm publish
31+
env:
32+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
33+
34+
- name: Create GitHub Release
35+
uses: actions/create-release@v1
36+
env:
37+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38+
with:
39+
tag_name: ${{ github.ref }}
40+
release_name: Release ${{ github.ref }}
41+
draft: false
42+
prerelease: false

.gitignore

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,17 @@
11
/vendor/
2+
dist
23
node_modules/
34
npm-debug.log
45
yarn-error.log
56

6-
# Laravel 4 specific
7-
bootstrap/compiled.php
8-
app/storage/
9-
10-
# Laravel 5 & Lumen specific
11-
public/storage
12-
public/hot
13-
14-
# Laravel 5 & Lumen specific with changed public path
15-
public_html/storage
16-
public_html/hot
17-
18-
storage/*.key
19-
.env
20-
Homestead.yaml
21-
Homestead.json
22-
/.vagrant
23-
.phpunit.result.cache
24-
257
/public/build
268
/storage/pail
279
.env.backup
2810
.env.production
2911
.phpactor.json
3012
auth.json
13+
.DS_Store
14+
*.log
15+
.env
16+
.vscode/
17+
.idea/

.npmignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# .npmignore
2+
node_modules/
3+
src/
4+
*.log
5+
.env
6+
.vscode/
7+
.idea/
8+
vite.config.js
9+
package-lock.json
10+
yarn.lock
11+
.gitignore

0 commit comments

Comments
 (0)