fix build & prepare release
This commit is contained in:
parent
91d08399d9
commit
ed8f26ec50
3 changed files with 5 additions and 9 deletions
11
.github/workflows/build.yml
vendored
11
.github/workflows/build.yml
vendored
|
@ -1,5 +1,8 @@
|
|||
name: build-it
|
||||
on: push
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- '[0-9]+.[0-9]+.[0-9]+'
|
||||
|
||||
jobs:
|
||||
build-it:
|
||||
|
@ -40,14 +43,12 @@ jobs:
|
|||
echo ${{ github.branch == 'master' }}
|
||||
|
||||
- name: build em
|
||||
if: ${{ github.branch == 'master' }}
|
||||
run: |
|
||||
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
|
||||
if: ${{ github.tag == '[0-9]+.[0-9]+.[0-9]+' }}
|
||||
id: create_release
|
||||
uses: actions/create-release@v1
|
||||
env:
|
||||
|
@ -59,7 +60,6 @@ jobs:
|
|||
prerelease: false
|
||||
|
||||
- name: Upload masto-embedd.js
|
||||
if: ${{ github.tag == '[0-9]+.[0-9]+.[0-9]+' }}
|
||||
id: upload-masto-embedd-js
|
||||
uses: actions/upload-release-asset@v1
|
||||
env:
|
||||
|
@ -71,7 +71,6 @@ jobs:
|
|||
asset_content_type: application/json
|
||||
|
||||
- name: Upload masto-embedd.js.sha256
|
||||
if: ${{ github.tag == '[0-9]+.[0-9]+.[0-9]+' }}
|
||||
id: upload-masto-embedd-js-sha256
|
||||
uses: actions/upload-release-asset@v1
|
||||
env:
|
||||
|
@ -83,7 +82,6 @@ jobs:
|
|||
asset_content_type: application/json
|
||||
|
||||
- name: Upload masto-embedd.js.sha512
|
||||
if: ${{ github.tag == '[0-9]+.[0-9]+.[0-9]+' }}
|
||||
id: upload-masto-embedd-js-sha512
|
||||
uses: actions/upload-release-asset@v1
|
||||
env:
|
||||
|
@ -95,7 +93,6 @@ jobs:
|
|||
asset_content_type: application/json
|
||||
|
||||
- name: upload to npm
|
||||
if: ${{ github.branch == 'master' }}
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
run: |
|
||||
|
|
|
@ -58,7 +58,6 @@ shadow-cljs compile test
|
|||
```
|
||||
#adjust version
|
||||
vi package.json
|
||||
git commit -am 'releasing'
|
||||
git tag -am 'releasing' <version>
|
||||
git push --follow-tags
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "dda-masto-embed",
|
||||
"author": "meissa GmbH",
|
||||
"version": "0.1.0",
|
||||
"version": "0.1.1",
|
||||
"homepage": "https://github.com/DomainDrivenArchitecture/dda-masto-embed",
|
||||
"repository": "https://github.com/DomainDrivenArchitecture/dda-masto-embed",
|
||||
"license": "Apache-2.0",
|
||||
|
|
Loading…
Reference in a new issue