We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f5a5a74 + 1ec5b32 commit e541b00Copy full SHA for e541b00
.github/workflows/npm-publish.yml
@@ -17,6 +17,15 @@ jobs:
17
node-version: 16
18
- run: npm ci
19
- run: npm test
20
+ - run: npm run build
21
+ - run: npm run build-cjs
22
+ - run: npm run build-esm
23
+ - name: Upload build artifacts
24
+ uses: actions/upload-artifact@v3
25
+ with:
26
+ name: build-artifacts
27
+ path: ./lib
28
+
29
30
publish-npm:
31
needs: build
@@ -27,8 +36,11 @@ jobs:
36
with:
37
38
registry-url: https://registry.npmjs.org/
39
+ - name: Download build artifacts
40
+ uses: actions/download-artifact@v3
41
42
43
- - run: npm run build
32
44
- run: npm publish
33
45
env:
34
46
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
0 commit comments