Skip to content

Commit

Permalink
Merge pull request #3 from poef/buildrunner
Browse files Browse the repository at this point in the history
add github action to automatically create the dist/oldm.mjs bundle
  • Loading branch information
poef authored Apr 4, 2024
2 parents 356f415 + 5ca3390 commit ea3e362
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 13 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/run-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
name: Run esbuild bundle

on:
- pull_request
# Allow manually triggering the workflow.
- workflow_dispatch

# Cancels all previous workflow runs for the same branch that have not yet completed.
concurrency:
# The concurrency group contains the workflow name and the branch name.
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
test:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- run: npm install
- run: npm run build
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: auto create bundle
file_pattern: 'dist/*'



2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules/
package-lock.json
16 changes: 8 additions & 8 deletions dist/oldm.mjs

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions dist/oldm.mjs.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"node": ">=20.0.0"
},
"dependencies": {
"@muze-nl/jsontag": "^0.9.4",
"@muze-nl/jsontag": "^0.9.5",
"n3": "^1.17.2"
},
"files": [
Expand Down

0 comments on commit ea3e362

Please sign in to comment.