2022-08-24 15:03:06 +00:00
|
|
|
name: "Make github release"
|
2021-09-08 08:28:22 +00:00
|
|
|
|
|
|
|
on:
|
2022-09-01 09:33:28 +00:00
|
|
|
workflow_dispatch:
|
2021-09-08 08:28:22 +00:00
|
|
|
|
|
|
|
jobs:
|
2022-08-24 15:03:06 +00:00
|
|
|
release-github:
|
2021-09-08 08:28:22 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
shell: bash
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
2022-09-01 09:23:30 +00:00
|
|
|
- name: "Get the version of fluence-js package"
|
|
|
|
id: package-version
|
|
|
|
uses: martinbeentjes/npm-get-version-action@v1.2.3
|
|
|
|
with:
|
|
|
|
path: packages/fluence-js
|
|
|
|
|
2022-09-01 10:14:22 +00:00
|
|
|
- name: Set env
|
|
|
|
run: echo "RELEASE_VERSION=v${{ steps.package-version.outputs.current-version }}" >> $GITHUB_ENV
|
|
|
|
|
2022-09-01 09:23:30 +00:00
|
|
|
- name: "Create tag for release"
|
|
|
|
uses: rickstaa/action-create-tag@v1
|
|
|
|
with:
|
2022-09-01 10:14:22 +00:00
|
|
|
tag: ${{ env.RELEASE_VERSION }}
|
2022-09-01 09:23:30 +00:00
|
|
|
message: ""
|
|
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
|
2021-09-08 08:28:22 +00:00
|
|
|
### Create a release
|
|
|
|
- name: Build Changelog
|
|
|
|
id: changelog
|
|
|
|
uses: mikepenz/release-changelog-builder-action@v1
|
|
|
|
with:
|
|
|
|
configuration: ".github/workflows/changelog_config.json"
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
|
|
|
|
- name: Release
|
|
|
|
id: release
|
|
|
|
uses: softprops/action-gh-release@v1
|
|
|
|
with:
|
2021-09-27 19:11:35 +00:00
|
|
|
name: Fluence JS ${{ env.RELEASE_VERSION }}
|
2021-09-08 08:28:22 +00:00
|
|
|
tag_name: ${{ env.RELEASE_VERSION }}
|
|
|
|
body: ${{steps.changelog.outputs.changelog}}
|
|
|
|
draft: false
|
|
|
|
prerelease: false
|
|
|
|
env:
|
2022-08-24 15:03:06 +00:00
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|