Skip to content

Commit 051fdbe

Browse files
committed
ci: build before publish
1 parent 8417dfe commit 051fdbe

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/publish.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Publish Package to npmjs
1+
name: Build Library and Publish Package to npmjs
22
on:
33
release:
44
types: [released]
@@ -12,7 +12,9 @@ jobs:
1212
with:
1313
node-version: "20.x"
1414
registry-url: "https://registry.npmjs.org"
15-
- run: npm ci
15+
- name: Install and Build Library
16+
run: npm install && npm run build
17+
- run: rm -rf node_modules && npm ci
1618
- run: npm publish
1719
env:
1820
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)