Skip to content

Commit

Permalink
update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Officeyutong committed Dec 24, 2024
1 parent 5d4654b commit 4d8b6c8
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/github-registry.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Publish package to GitHub Packages
on:
push:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
# Setup .npmrc file to publish to GitHub Packages
- uses: actions/setup-node@v4
with:
node-version: '18.x'
registry-url: 'https://npm.pkg.github.com'
- run: |
rustup target add wasm32-unknown-unknown
cargo install wasm-pack
- run: |
cd light-client-db-worker
yarn install
yarn build
- run: |
cd light-client-wasm
yarn install
yarn build
- run: |
cd light-client-js
yarn install
yarn build
yarn npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 4d8b6c8

Please sign in to comment.