Skip to content

Merge pull request #1851 from dev-launchers/development/components #664

Merge pull request #1851 from dev-launchers/development/components

Merge pull request #1851 from dev-launchers/development/components #664

Workflow file for this run

name: ReleaseOrVersionPR
on:
push:
branches:
- master
jobs:
release:
if: github.repository == 'dev-launchers/dev-launchers-platform'
name: Release and changelog
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@master
with:
# To run comparison we need more than the latest commit. Keep the fetch-depth relatively
# high or set it to zero to get all commits from the git repo.
# @link https://github.com/actions/checkout#fetch-all-history-for-all-tags-and-branches
fetch-depth: 150
- name: Use Node.js 16.x
uses: actions/setup-node@v3
with:
node-version: 16.x
# Why not using setup-node 2.2+ cache option (yet) ?
# see https://github.com/belgattitude/nextjs-monorepo-example/pull/369
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
- name: Restore yarn cache
uses: actions/cache@v3
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: yarn-cache-folder-${{ hashFiles('**/yarn.lock', '.yarnrc.yml') }}
restore-keys: |
yarn-cache-folder-
- name: Install dependencies
run: |
yarn install --immutable --inline-builds
env:
HUSKY: 0
# @link https://github.com/changesets/action
- name: Create Release Pull Request
id: changesets
uses: changesets/action@v1
env:
# See https://github.com/changesets/action/issues/147
HOME: ${{ github.workspace }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}