-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #35 from EOEFANS/main
release 1.0.3
- Loading branch information
Showing
4 changed files
with
137 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,87 @@ | ||
| # This is a basic workflow to help you get started with Actions | ||
|
|
||
| name: Release CI | ||
|
|
||
| # Controls when the workflow will run | ||
| on: | ||
| # Triggers the workflow on push or pull request events but only for the "main" branch | ||
| # push: | ||
| # branches: [ "main" ] | ||
| # pull_request: | ||
| # branches: [ "main" ] | ||
|
|
||
| # Allows you to run this workflow manually from the Actions tab | ||
| workflow_dispatch: | ||
| inputs: | ||
| release_version: | ||
| required: false | ||
| type: string | ||
|
|
||
| env: | ||
| RELEASE_VERSION: ${{ inputs.release_version }} | ||
|
|
||
| # A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
| jobs: | ||
| # This workflow contains a single job called "build" | ||
| release-and-update-changelog: | ||
| # The type of runner that the job will run on | ||
| runs-on: [ self-hosted ] | ||
| name: Update the change log and generate a new tag for release | ||
|
|
||
| strategy: | ||
| matrix: | ||
| node-version: [18.x] | ||
| # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ | ||
|
|
||
| # Steps represent a sequence of tasks that will be executed as part of the job | ||
| steps: | ||
| # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
| - uses: actions/checkout@v3 | ||
| with: | ||
| submodules: true | ||
|
|
||
| - uses: actions/setup-node@v3 | ||
| name: Use Node.js ${{ matrix.node-version }} | ||
| with: | ||
| node-version: ${{ matrix.node-version }} | ||
|
|
||
| - uses: pnpm/action-setup@v2 | ||
| name: Install pnpm | ||
| id: pnpm-install | ||
| with: | ||
| version: 7 | ||
| run_install: false | ||
|
|
||
| - name: Get pnpm store directory | ||
| id: pnpm-cache | ||
| shell: bash | ||
| run: | | ||
| echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT | ||
| - uses: actions/cache@v3 | ||
| name: Setup pnpm cache | ||
| with: | ||
| path: ${{ steps.pnpm-cache.outputs.STORE_PATH }} | ||
| key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
| restore-keys: | | ||
| ${{ runner.os }}-pnpm-store- | ||
| - name: Install dependencies | ||
| run: pnpm install | ||
|
|
||
| - uses: oleksiyrudenko/gha-git-credentials@v2-latest | ||
| with: | ||
| global: true | ||
| name: ${{ github.actor }} | ||
| email: ${{ github.actor }}@vtb.link | ||
| actor: ${{ github.actor }} | ||
| token: ${{ secrets.GITHUB_TOKEN }} | ||
|
|
||
| - name: update the changelog and add a new tag | ||
| if: ${{ env.RELEASE_VERSION == '' }} | ||
| run: pnpm release:changelog | ||
|
|
||
| - name: update the changelog and add a specific tag | ||
| if: ${{ env.RELEASE_VERSION != '' }} | ||
| run: pnpm release:changelog --release-as ${{ env.RELEASE_VERSION }} | ||
| - name: publish the update | ||
| run: git push --follow-tags |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters