Skip to content

Commit edd1525

Browse files
committed
chore: releasing process fixes.
1 parent a80ef1e commit edd1525

File tree

2 files changed

+17
-9
lines changed

2 files changed

+17
-9
lines changed

.github/workflows/release.yml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
- main
66
env:
77
CI: true
8-
PNPM_CACHE_FOLDER: .pnpm-store
8+
99
jobs:
1010
version:
1111
timeout-minutes: 15
@@ -21,22 +21,28 @@ jobs:
2121
with:
2222
node-version: 16
2323

24-
- name: install pnpm
25-
run: npm i pnpm@latest -g
24+
- name: Get yarn cache directory path
25+
id: yarn-cache-dir-path
26+
run: echo "::set-output name=dir::$(yarn cache dir)"
2627

27-
- name: setup pnpm config
28-
run: pnpm config set store-dir $PNPM_CACHE_FOLDER
28+
- uses: actions/cache@v1
29+
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
30+
with:
31+
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
32+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
33+
restore-keys: |
34+
${{ runner.os }}-yarn-
2935
3036
- name: install dependencies
31-
run: pnpm install
37+
run: yarn install
3238

3339
- name: create and publish versions
3440
uses: changesets/action@v1
3541
with:
36-
version: pnpm run version
42+
version: yarn run version
3743
commit: "chore: update versions"
3844
title: "chore: update versions"
39-
publish: pnpm run publish
45+
publish: yarn run publish
4046
env:
4147
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4248
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@
3939
"android:pretty": "yarn --cwd exampleExpo android:pretty",
4040
"pods": "cd exampleExpo && pod-install --quiet",
4141
"bootstrap": "yarn && yarn pods",
42-
"deploy": "cd exampleExpo && yarn deploy"
42+
"deploy": "cd exampleExpo && yarn deploy",
43+
"publish": "yarn run prepare && changeset publish",
44+
"version": "changeset version"
4345
},
4446
"keywords": [
4547
"react-native",

0 commit comments

Comments
 (0)