Skip to content

Commit 538ac34

Browse files
committed
ci(publish): update workflow
1 parent c16602a commit 538ac34

File tree

1 file changed

+8
-19
lines changed

1 file changed

+8
-19
lines changed

.github/workflows/publish.yml

Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -87,20 +87,12 @@ jobs:
8787
run: mv java.*.node npm/${{ matrix.package }}
8888
shell: bash
8989
- name: NPM Publish Binary
90-
uses: JS-DevTools/npm-publish@v4
91-
if: ${{ matrix.package != 'linux-x64-gnu' }}
92-
with:
93-
access: public
94-
package: npm/${{ matrix.package }}/package.json
95-
dry-run: ${{ github.event.inputs.dry-run == 'true' }}
96-
ignore-scripts: false
90+
if: ${{ matrix.package != 'linux-x64-gnu' && github.event.inputs.dry-run != 'true' }}
91+
working-directory: npm/${{ matrix.package }}
92+
run: npm publish --access public
9793
- name: NPM Publish
98-
uses: JS-DevTools/npm-publish@v4.1.5
99-
if: ${{ matrix.package == 'linux-x64-gnu' }}
100-
with:
101-
access: public
102-
dry-run: ${{ github.event.inputs.dry-run == 'true' }}
103-
ignore-scripts: false
94+
if: ${{ matrix.package == 'linux-x64-gnu' && github.event.inputs.dry-run != 'true' }}
95+
run: npm publish --access public
10496

10597
build-musl:
10698
runs-on: ubuntu-latest
@@ -131,12 +123,9 @@ jobs:
131123
run: mv java.*.node npm/linux-x64-musl
132124
shell: bash
133125
- name: NPM Publish Binary
134-
uses: JS-DevTools/npm-publish@v4
135-
with:
136-
access: public
137-
package: npm/linux-x64-musl/package.json
138-
dry-run: ${{ github.event.inputs.dry-run == 'true' }}
139-
ignore-scripts: false
126+
working-directory: npm/linux-x64-musl
127+
if: ${{ github.event.inputs.dry-run != 'true' }}
128+
run: npm publish --access public
140129

141130
draft-release:
142131
needs: [build, build-musl]

0 commit comments

Comments
 (0)