Skip to content

Commit 6dacc2f

Browse files
committed
fix: package manager scripts
1 parent 84b34e9 commit 6dacc2f

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

.github/workflows/npm-publish-github-packages.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@ jobs:
1515
- uses: actions/setup-node@v3
1616
with:
1717
node-version: 20
18-
- run: npm ci
19-
- run: npm lint
18+
cache: 'yarn'
19+
- run: yarn install
20+
- run: yarn lint
2021

2122
publish-gpr:
2223
needs: build
@@ -30,8 +31,9 @@ jobs:
3031
with:
3132
node-version: 20
3233
registry-url: https://npm.pkg.github.com/
33-
- run: npm ci
34-
- run: npm prepack
34+
cache: 'yarn'
35+
- run: yarn install
36+
- run: yarn run prepack
3537
- run: npm publish
3638
env:
3739
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,5 @@
5252
"dist/**/*.js*",
5353
"dist/**/*.mjs*",
5454
"dist/**/*.d*"
55-
],
56-
"packageManager": "yarn@3.2.4"
55+
]
5756
}

0 commit comments

Comments
 (0)