We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5f1e156 commit 3b19f0eCopy full SHA for 3b19f0e
.github/workflows/npm-publish-github-packages.yml
@@ -22,8 +22,20 @@ jobs:
22
with:
23
node-version: '20.x'
24
registry-url: 'https://registry.npmjs.org'
25
- - run: npm i
26
- - run: npm pack
27
- - run: npm publish --provenance --access public
+ cache: 'yarn'
+
+ # Use Yarn instead of npm
28
+ - name: Enable corepack (Yarn)
29
+ run: corepack enable
30
31
+ - name: Install dependencies
32
+ run: yarn install --immutable
33
34
+ - name: Build package tarball with Yarn
35
+ run: yarn pack --out package.tgz
36
37
+ # Still use npm to publish the already-generated tarball
38
+ - name: Publish to npm
39
+ run: npm publish package.tgz --provenance --access public
40
env:
41
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
0 commit comments