Skip to content

Commit

Permalink
Dry run publish in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
simolus3 committed Jan 28, 2025
1 parent bae3b39 commit d79a6d9
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,19 @@ jobs:
$changes"
gh release create "$tag" --title "$tag" --notes "$body"
gh release upload "${{ github.ref_name }}" packages/powersync/assets/powersync_db.worker.js packages/powersync/assets/powersync_sync.worker.js packages/sqlite3_wasm_build/dist/*.wasm
- name: Setup Node.js
uses: actions/setup-node@v4
- uses: pnpm/action-setup@v2
name: Install pnpm
with:
run_install: false
- name: Publish npm package with WASM files
working-directory: packages/sqlite3/wasm_build
run: |
pnpm i
npm version --allow-same-version --no-git-tag-version $(echo $GITHUB_REF_NAME | sed -E 's/powersync-v//')
pnpm publish --no-git-checks
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
12 changes: 12 additions & 0 deletions .github/workflows/test_wasm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,15 @@ jobs:
if: runner.os == 'macOS'
working-directory: packages/sqlite3_wasm_build
run: ./build.sh

- name: Setup Node.js
uses: actions/setup-node@v4
- uses: pnpm/action-setup@v2
name: Install pnpm
with:
run_install: false
- name: Dry-run npm publish
working-directory: packages/sqlite3/wasm_build
run: |
pnpm i
pnpm publish --no-git-checks --dry-run
1 change: 1 addition & 0 deletions packages/sqlite3_wasm_build/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sqlite3.dart/

0 comments on commit d79a6d9

Please sign in to comment.