Skip to content

Commit

Permalink
Merge pull request Drental#69 from pgrosslicht/master
Browse files Browse the repository at this point in the history
Use rollup to bundle addon
  • Loading branch information
Drental authored Aug 31, 2021
2 parents 11bc0ba + c4375c7 commit 7970989
Show file tree
Hide file tree
Showing 6 changed files with 573 additions and 6 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ jobs:
manifest: https://github.com/${{github.repository}}/releases/latest/download/module.json
download: https://github.com/${{github.repository}}/releases/download/${{github.event.release.tag_name}}/module.zip

- uses: actions/setup-node@v2
with:
node-version: '16'
- run: npm install
- run: npm run build

# Create a zip file with all files required by the module to add to the release
- run: zip -r ./module.zip module.json readme.md lang/ lib/ scripts/ styles/ templates/

Expand All @@ -41,4 +47,4 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
artifacts: './module.json, ./module.zip'
tag: ${{ github.event.release.tag_name }}
body: ${{ github.event.release.body }}
body: ${{ github.event.release.body }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ foundry.js
/.vs
/.vscode
/.github
/node_modules
token-action-hud.lock
8 changes: 3 additions & 5 deletions module.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@
"minimumCoreVersion": "0.8.0",
"compatibleCoreVersion": "0.8.9",
"scripts": [
"./lib/tagify/tagify.min.js"
],
"esmodules": [
"./scripts/init.js"
"./lib/tagify/tagify.min.js",
"./scripts/bundle.min.js"
],
"styles": [
"./styles/token-action-hud.css",
Expand Down Expand Up @@ -95,4 +93,4 @@
"protected": false,
"coreTranslation": false,
"library": false
}
}
Loading

0 comments on commit 7970989

Please sign in to comment.