Skip to content

Commit 16e5b31

Browse files
committed
Chore: Corepack set, permissions updates
1 parent d840ee2 commit 16e5b31

File tree

4 files changed

+17
-8
lines changed

4 files changed

+17
-8
lines changed

.github/actions/cache-dir/action.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ inputs:
88
paths:
99
description: Paths to cache
1010
required: false
11-
default: "**/.cache"
11+
default: |
12+
.cache
13+
**/.cache
1214
1315
runs:
1416
using: composite
@@ -21,7 +23,8 @@ runs:
2123
- uses: actions/cache@v4
2224
id: cache
2325
with:
24-
path: ${{ inputs.paths }}
26+
path: |
27+
${{ inputs.paths }}
2528
key: ${{ runner.os }}-cache-${{ inputs.key }}-${{ hashFiles('**/yarn.lock') }}-${{ steps.cache-time.outputs.time }}
2629
restore-keys: |
2730
${{ runner.os }}-cache-${{ inputs.key }}-${{ hashFiles('**/yarn.lock') }}-

.github/actions/node-setup/action.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ runs:
1414
# https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
1515
- name: Get yarn cache directory path
1616
id: yarn-cache-dir-path
17-
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
17+
run: |
18+
corepack enable
19+
echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
1820
shell: bash
1921

2022
- uses: actions/cache@v4

.github/workflows/fast-forward.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,12 @@ jobs:
105105

106106
runs-on: ubuntu-latest
107107

108-
permissions: write-all
108+
permissions:
109+
contents: write
110+
issues: write
111+
pull-requests: write
112+
packages: write
113+
statuses: write
109114

110115
steps:
111116
- name: Checkout Repo

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"examples/*"
1010
],
1111
"scripts": {
12-
"task": "turbo run --cache-dir .cache/turbo",
12+
"task": "yarn turbo run --cache-dir .cache/turbo",
1313
"clean": "yarn g:clean && yarn task clean",
1414
"build": "yarn task build",
1515
"build:type": "yarn tsc --build",
@@ -26,9 +26,8 @@
2626
"coverage": "yarn task coverage",
2727
"coverage:all": "yarn task coverage:all",
2828
"forallpackages": "yarn workspaces foreach -Aptv --no-private --verbose",
29-
"build:release": "yarn build && yarn forallpackages exec rimraf _release && yarn forallpackages pack && yarn forallpackages exec \"mkdir _release && tar zxvf package.tgz --directory _release && rm package.tgz\"",
30-
"changeset": "changeset",
31-
"changeset:version": "changeset version",
29+
"build:release": "PACKAGE_PUBLISH=true yarn build && yarn forallpackages exec \"rimraf _release && pack && mkdir _release && tar zxvf package.tgz --directory _release && rm package.tgz\"",
30+
"changeset:version": "yarn changeset version",
3231
"publish": "yarn build:release && changeset publish",
3332
"g:clean": "cd $INIT_CWD && yarn run -T rimraf .cache _release dist coverage .turbo tsconfig.tsbuildinfo node_modules/.vite",
3433
"g:build": "cd $INIT_CWD && yarn run -T vite build",

0 commit comments

Comments
 (0)