Skip to content

Commit 70c5b83

Browse files
committed
fix: use yarn4.5.3 in cd
1 parent 18aaf84 commit 70c5b83

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/deploy-package.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,8 @@ jobs:
2525
uses: actions/setup-node@v3
2626
with:
2727
node-version: "20"
28-
cache: 'yarn'
29-
30-
- name: Use yarn@4.5.3
28+
29+
- name: Set up yarn@4.5.3
3130
run: |
3231
corepack enable
3332
corepack prepare yarn@4.5.3 --activate
@@ -71,7 +70,7 @@ jobs:
7170
echo "Local version: ($CURRENT_VERSION) is higher then registry version: ($NPM_VERSION). Maintain local version."
7271
elif [ "$CURRENT_VERSION" != "$NPM_VERSION" ]; then
7372
echo "Registry version: ($NPM_VERSION) is higher then ($CURRENT_VERSION). Update local version."
74-
npm version $NPM_VERSION --no-git-tag-version
73+
yarn version $NPM_VERSION --no-git-tag-version
7574
else
7675
echo "Versions are the same, no need to update."
7776
fi
@@ -89,7 +88,7 @@ jobs:
8988
- name: Bump version and create new tag
9089
working-directory: packages/msw-dev-tool
9190
run: |
92-
npm version patch -m "chore(release): bump version to %s"
91+
yarn version patch -m "chore(release): bump version to %s"
9392
9493
- name: Create .npmrc file
9594
working-directory: packages/msw-dev-tool
@@ -98,4 +97,5 @@ jobs:
9897
9998
- name: Publish to npm
10099
working-directory: packages/msw-dev-tool
101-
run: npm publish
100+
run: |
101+
yarn npm publish --access public

0 commit comments

Comments
 (0)