test releasing as lib
This commit is contained in:
parent
65a0f5cb00
commit
f92b652bf9
3 changed files with 23 additions and 7 deletions
10
.github/workflows/release.yml
vendored
10
.github/workflows/release.yml
vendored
|
@ -40,9 +40,9 @@ jobs:
|
|||
|
||||
- name: build em
|
||||
run: |
|
||||
shadow-cljs release frontend
|
||||
sha256sum public/js/main.js > target/dda-masto-embedd.js.sha256
|
||||
sha512sum public/js/main.js > target/dda-masto-embedd.js.sha512
|
||||
shadow-cljs release lib
|
||||
sha256sum target/lib.js > target/dda-masto-embedd.js.sha256
|
||||
sha512sum target/lib.js > target/dda-masto-embedd.js.sha512
|
||||
|
||||
- name: Create Release
|
||||
id: create_release
|
||||
|
@ -62,7 +62,7 @@ jobs:
|
|||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||
asset_path: public/js/main.js
|
||||
asset_path: target/lib.js
|
||||
asset_name: dda-masto-embed.js
|
||||
asset_content_type: application/json
|
||||
|
||||
|
@ -93,7 +93,7 @@ jobs:
|
|||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
run: |
|
||||
mkdir -p target/npm-build
|
||||
cp public/js/main.js target/npm-build/
|
||||
cp target/lib.js target/npm-build/
|
||||
cp target/dda-masto-embedd.js.sha256 target/npm-build/
|
||||
cp target/dda-masto-embedd.js.sha512 target/npm-build/
|
||||
cp package.json target/npm-build/
|
||||
|
|
16
package.json
16
package.json
|
@ -1,6 +1,11 @@
|
|||
{
|
||||
"name": "dda-masto-embed",
|
||||
"version": "0.0.1",
|
||||
"description": "Renders mastodon statuses to a website using just JS, no additional server needed.",
|
||||
"author": "meissa GmbH",
|
||||
"version": "0.0.2",
|
||||
"homepage": "https://github.com/DomainDrivenArchitecture/dda-masto-embed",
|
||||
"repository": "https://github.com/DomainDrivenArchitecture/dda-masto-embed",
|
||||
"license": "APACHE2.0",
|
||||
"private": false,
|
||||
"devDependencies": {
|
||||
"shadow-cljs": "^2.8.104",
|
||||
|
@ -11,5 +16,12 @@
|
|||
"eslint": ">=4.18.2",
|
||||
"lodash.template": ">=4.5.0",
|
||||
"mastodon-api": "^1.3.0"
|
||||
}
|
||||
},
|
||||
"main": "mastodon-bot.js",
|
||||
"keywords": [
|
||||
"cljs",
|
||||
"mastodon",
|
||||
"status",
|
||||
"bootstrap"
|
||||
]
|
||||
}
|
||||
|
|
|
@ -13,6 +13,10 @@
|
|||
{:test {:target :node-test
|
||||
:output-to "target/node-tests.js"
|
||||
:autorun true}
|
||||
:lib {:target :node-library
|
||||
:output-to "target/lib.js"
|
||||
:exports {:init dda.masto-embed.app/init}
|
||||
:release {:compiler-options {:optimizations :simple}}}
|
||||
:frontend {:target :browser
|
||||
:module-hash-names true
|
||||
:modules {:main {:init-fn dda.masto-embed.app/init}}}}}
|
||||
|
|
Loading…
Reference in a new issue