diff --git a/.github/workflows/Build.yml b/.github/workflows/Build.yml new file mode 100644 index 0000000..eb312f0 --- /dev/null +++ b/.github/workflows/Build.yml @@ -0,0 +1,44 @@ +name: CI + +on: + push: + branches: + - master # default branch + +jobs: + build: + runs-on: ubuntu-22.04 + + steps: + - uses: actions/checkout@v3 + with: + submodules: true + fetch-tags: true + + - uses: actions/setup-node@v3 + with: + node-version: 20.x + + - name: Install Dependencies + run: | + npm i + - + name: Force Unshallow Repo + run: | + git fetch --depth=500 + - + name: Build Library + run: | + npm run build + + - name: Package Library for npm + run: | + npm pack + + - name: Update dist + run: | + git config --global user.email "actions@github.com" + git config --global user.name "GitHub Actions" + git add dist + git commit -m "Update Dist" + git push diff --git a/.gitignore b/.gitignore index c34fc0a..152dde7 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,6 @@ node_modules/ .npmrc -package-lock.json \ No newline at end of file +package-lock.json + +*.tgz diff --git a/HISTORY.txt b/HISTORY.txt index 94cbc3c..dd18f46 100644 --- a/HISTORY.txt +++ b/HISTORY.txt @@ -4,6 +4,12 @@ Build at: Fri Dec 01 2023 19:43:01 GMT-0600 (Central Standard Time) --- +Bundle version: 0.1.0 +Build at: Fri Dec 01 2023 22:33:33 GMT-0100 (Hora padrão dos Açores) +--- + +--- + Bundle version: 0.1.0 Build at: Sat Nov 18 2023 16:15:52 GMT-0600 (Central Standard Time) --- diff --git a/package.json b/package.json index 0c7104a..d61abfc 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "main": "index.js", "scripts": { "clean": "rimraf --glob ./dist/*", - "static": "copyfiles -u 1 ./static/**/* ./dist/assets/", + "static": "copyfiles -u 1 ./static/** ./static/**/* ./dist/assets/", "prebuild": "npm run clean && npm run static", "build": "rollup -c --bundleConfigAsCjs", "version": " npm run build", @@ -64,4 +64,4 @@ "@awayjs/stage": "v0.11.138", "@awayjs/view": "v0.6.61" } -} \ No newline at end of file +} diff --git a/releaseLog.js b/releaseLog.js index 4a16aa4..a47ea2b 100644 --- a/releaseLog.js +++ b/releaseLog.js @@ -35,7 +35,7 @@ function collectLastTags (repoUrls = []) { const req = repoUrls.map(({url}) => { return invoke( 'git', - ['describe', '--abbrev=0', '--tags'], + ['describe', '--abbrev=0', '--tags', '--always'], { cwd: url, windowsHide: true } ).then((e) => e.trim()); });