Skip to content

Merge pull request #111 from ynmstudio/feature/update-app-to-angular-17 #4

Merge pull request #111 from ynmstudio/feature/update-app-to-angular-17

Merge pull request #111 from ynmstudio/feature/update-app-to-angular-17 #4

Workflow file for this run

name: Release
on:
push:
branches:
- main
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
release:
name: Release
runs-on: ubuntu-latest
outputs:
tag: ${{ steps.create_tag.outputs.tag }}
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Setup Node.js 20
uses: actions/setup-node@v3
with:
node-version: 20
- name: Install Dependencies
run: yarn
- name: Create Release Pull Request
id: changesets
uses: changesets/action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create Tag
if: steps.changesets.outputs.hasChangesets == 'false'
id: create_tag
# You can do something when a publish should happen.
run: |
yarn changeset tag
echo "tag=$(git describe --tags)" >> $GITHUB_OUTPUT
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create Release
if: steps.changesets.outputs.hasChangesets == 'false'
id: create_release
uses: actions/create-release@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ steps.create_tag.outputs.tag }}
release_name: Release ${{ steps.create_tag.outputs.tag }}
draft: false
prerelease: false