Skip to content

Commit

Permalink
?????
Browse files Browse the repository at this point in the history
  • Loading branch information
drcmda committed Dec 16, 2023
1 parent f200fc7 commit 08a42e6
Showing 1 changed file with 5 additions and 17 deletions.
22 changes: 5 additions & 17 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ on:
branches:
- main
paths:
- "**/package.json"
- ".changeset/**"
- '**/package.json'
- '.changeset/**'

jobs:
release:
Expand All @@ -22,19 +22,7 @@ jobs:
- name: Use Node
uses: actions/setup-node@v2
with:
node-version: "14"

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"

- uses: actions/cache@v2
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: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
node-version: '14'

- name: Install dependencies
run: yarn install --silent
Expand All @@ -45,8 +33,8 @@ jobs:
with:
# This expects you to have a script called release which does a build for your packages and calls changeset publish
publish: yarn release
commit: "chore(release): update monorepo packages versions"
title: "Upcoming Release Changes"
commit: 'chore(release): update monorepo packages versions'
title: 'Upcoming Release Changes'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 08a42e6

Please sign in to comment.