Skip to content

Commit c656fa5

Browse files
committed
Refactor WASM artifact paths in GitHub Actions workflow
1 parent 759ac09 commit c656fa5

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

.github/workflows/main.yml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -203,9 +203,7 @@ jobs:
203203
if: always()
204204
with:
205205
name: cloudsync-${{ matrix.name }}${{ matrix.arch && format('-{0}', matrix.arch) || '' }}
206-
path: |
207-
dist/cloudsync.*
208-
sqlite-wasm/*.tgz
206+
path: ${{ matrix.name == 'wasm' && 'sqlite-wasm/*.tgz' || 'dist/cloudsync.*'}}
209207
if-no-files-found: error
210208

211209
release:
@@ -251,13 +249,6 @@ jobs:
251249
with:
252250
node-version: '20.x'
253251
registry-url: 'https://registry.npmjs.org'
254-
255-
- name: wasm publish to npmjs
256-
if: steps.tag.outputs.version != ''
257-
#use this version when the repo will become public run: npm publish --provenance --access public ./artifacts/cloudsync-wasm/sqlite-wasm/sqliteai-cloudsync-wasm-*-cloudsync-*.tgz
258-
run: npm publish --access public ./artifacts/cloudsync-wasm/sqlite-wasm/sqliteai-cloudsync-wasm-*-cloudsync-*.tgz
259-
env:
260-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
261252

262253
- name: zip artifacts
263254
run: |
@@ -272,6 +263,13 @@ jobs:
272263
fi
273264
done
274265
266+
- name: wasm publish to npmjs
267+
if: steps.tag.outputs.version != ''
268+
#use this version when the repo will become public run: npm publish --provenance --access public ./artifacts/cloudsync-wasm/sqlite-wasm/sqliteai-cloudsync-wasm-*-cloudsync-*.tgz
269+
run: npm publish --access public ./artifacts/cloudsync-wasm/sqlite-wasm/sqliteai-cloudsync-wasm-*-cloudsync-*.tgz
270+
env:
271+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
272+
275273
- uses: softprops/[email protected]
276274
if: steps.tag.outputs.version != ''
277275
with:

0 commit comments

Comments
 (0)