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