Skip to content

Commit 0369d8c

Browse files
committed
ci: publish only on release and NODE_ENV production
1 parent d77a52a commit 0369d8c

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/publish-single.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
name: Publish Package to npmjs
22
on:
3-
workflow_dispatch:
3+
release:
4+
types: [published]
45

56
jobs:
67
publish-single:
78
runs-on: ubuntu-latest
89
permissions:
910
contents: write
1011
id-token: write
12+
env:
13+
NODE_ENV: production
1114
steps:
1215
- uses: actions/checkout@v5
1316

0 commit comments

Comments
 (0)