Skip to content

Commit

Permalink
feat: enabling external storages (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
elribonazo authored Dec 26, 2024
2 parents 15e4482 + 2d52402 commit c928450
Show file tree
Hide file tree
Showing 67 changed files with 2,345 additions and 2,015 deletions.
40 changes: 33 additions & 7 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,43 @@ on:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: recursive
token: ${{ secrets.GH_SECRET }}
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
registry-url: 'https://registry.npmjs.org/'
cache: 'npm'
cache-dependency-path: ./package-lock.json
- name: Install WASM
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
scope: '@trust0' # Replace with your organization scope

- run: npm install && npm test
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true

- name: Configure npm authentication
run: |
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ./.npmrc
echo "@trust0:registry=https://registry.npmjs.org/" >> ./.npmrc
env:
NPM_TOKEN: ${{ env.NPM_TOKEN }}

- name: Install WASM
env:
NPM_TOKEN: ${{ env.NPM_TOKEN }}
GH_TOKEN: ${{ secrets.GH_SECRET }}
run: |
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
npm install
npm run build
npm test
10 changes: 4 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@ jobs:
with:
node-version: '20'
registry-url: 'https://registry.npmjs.org/'
scope: '@trust0' # Replace with your organization scope
cache: 'npm'
cache-dependency-path: ./package-lock.json
scope: '@trust0'

- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
Expand All @@ -57,6 +55,6 @@ jobs:
NPM_TOKEN: ${{ env.NPM_TOKEN }}
GH_TOKEN: ${{ secrets.GH_SECRET }}
run: |
npm ci
npm run docs
npx semantic-release
npm install
npm run build
cd packages/ridb && npx semantic-release
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ esm/*
umd/*
.idea
coverage
build/*
build/*
.turbo
node_modules/**/*
Loading

0 comments on commit c928450

Please sign in to comment.