Skip to content

Commit

Permalink
chore: update ci to new default branch name
Browse files Browse the repository at this point in the history
  • Loading branch information
hugomrdias committed Oct 12, 2022
1 parent 4ee789f commit 40b5e2f
Show file tree
Hide file tree
Showing 13 changed files with 74 additions and 215 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/access-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ env:
on:
push:
branches:
- master
- main
paths:
- 'packages/access-api/**'
- '.github/workflows/access-api.yml'
Expand All @@ -21,11 +21,11 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: pnpm/action-setup@v2.0.1
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2.2.3
with:
version: 7
- uses: actions/setup-node@v2
- uses: actions/setup-node@v3
with:
node-version: 18
cache: 'pnpm'
Expand All @@ -34,7 +34,7 @@ jobs:
- run: pnpm -r --filter @web3-storage/access-api run test
deploy-staging:
needs: test
if: github.head_ref == 'release-please--branches--master--components--access-api'
if: github.head_ref == 'release-please--branches--main--components--access-api'
uses: './.github/workflows/reuse-deploy-api.yml'
with:
environment: staging
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/access.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ env:
on:
push:
branches:
- master
- main
paths:
- 'packages/access/**'
- '.github/workflows/access.yml'
Expand All @@ -19,11 +19,11 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: pnpm/action-setup@v2.0.1
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2.2.3
with:
version: 7
- uses: actions/setup-node@v2
- uses: actions/setup-node@v3
with:
node-version: 18
cache: 'pnpm'
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ jobs:
runs-on: ubuntu-latest
if: github.event.inputs.package == 'wallet'
steps:
- uses: actions/checkout@v2
- uses: pnpm/action-setup@v2.0.1
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2.2.3
with:
version: 7
- uses: actions/setup-node@v2
- uses: actions/setup-node@v3
with:
node-version: 16
cache: 'pnpm'
Expand All @@ -41,7 +41,7 @@ jobs:
${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml') }}-
- run: pnpm install
- run: pnpm -r --filter wallet run build
- run: pnpm exec wrangler pages publish --project-name ucan-protocol --branch master ./packages/wallet/out
- run: pnpm exec wrangler pages publish --project-name ucan-protocol --branch main ./packages/wallet/out
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CF_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CF_ACCOUNT_ID }}
Expand All @@ -55,11 +55,11 @@ jobs:
runs-on: ubuntu-latest
if: github.event.inputs.package == 'access'
steps:
- uses: actions/checkout@v2
- uses: pnpm/action-setup@v2.0.1
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2.2.3
with:
version: 7
- uses: actions/setup-node@v2
- uses: actions/setup-node@v3
with:
node-version: 18
registry-url: 'https://registry.npmjs.org'
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ env:
on:
push:
branches:
- master
- main
jobs:
release:
runs-on: ubuntu-latest
outputs:
paths_released: ${{ steps.release.outputs.paths_released }}
steps:
- uses: GoogleCloudPlatform/release-please-action@v3
- uses: google-github-actions/release-please-action@v3
id: release
with:
token: ${{ secrets.GH_TOKEN }}
Expand All @@ -24,11 +24,11 @@ jobs:
if: contains(fromJson(needs.release.outputs.paths_released), 'packages/access')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: pnpm/action-setup@v2.0.1
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2.2.3
with:
version: 7
- uses: actions/setup-node@v2
- uses: actions/setup-node@v3
with:
node-version: 18
registry-url: 'https://registry.npmjs.org'
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/reuse-deploy-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ jobs:
runs-on: ubuntu-latest
environment: ${{ inputs.environment }}
steps:
- uses: actions/checkout@v2
- uses: pnpm/action-setup@v2.0.1
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2.2.3
with:
version: 7
- uses: actions/setup-node@v2
- uses: actions/setup-node@v3
with:
node-version: 18
cache: 'pnpm'
Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/store.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Store API

on:
workflow_dispatch:
push:
branches:
- main
paths:
- 'packages/store/**'
- '.github/workflows/store.yml'
- 'pnpm-lock.yaml'
pull_request:
paths:
- 'packages/store/**'
- '.github/workflows/store.yml'
- 'pnpm-lock.yaml'
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2.2.3
with:
version: 7
- uses: actions/setup-node@v3
with:
node-version: 18
cache: 'pnpm'
- run: pnpm install
- run: pnpm -r --filter @web3-storage/store run lint
- run: pnpm -r --filter @web3-storage/store run test
78 changes: 0 additions & 78 deletions .github/workflows/w3-store.yml

This file was deleted.

6 changes: 6 additions & 0 deletions packages/access/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
"name": "@web3-storage/access",
"version": "2.1.1",
"description": "w3access SDK",
"homepage": "https://github.com/web3-storage/w3-protocol/tree/main/packages/access",
"repository": {
"type": "git",
"url": "https://github.com/web3-storage/w3-protocol.git",
"directory": "packages/access"
},
"author": "Hugo Dias <hugomrdias@gmail.com> (hugodias.me)",
"license": "(Apache-2.0 OR MIT)",
"type": "module",
Expand Down
7 changes: 4 additions & 3 deletions packages/store/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "w3-store",
"name": "@web3-storage/store",
"description": "web3.storage upload service",
"version": "1.1.0",
"types": "./dist/src/lib.d.ts",
Expand All @@ -13,9 +13,10 @@
],
"repository": {
"type": "git",
"url": "https://github.com/web3-storage/ucanto.git"
"url": "https://github.com/web3-storage/w3-protocol.git",
"directory": "packages/store"
},
"homepage": "https://github.com/web3-storage/ucanto/tree/demo/upload-v2",
"homepage": "https://github.com/web3-storage/w3-protocol/tree/main/packages/store",
"scripts": {
"check": "tsc --build",
"test": "npm run test:node",
Expand Down
1 change: 1 addition & 0 deletions packages/store/src/identity/lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ export const connect = ({
id,
url,
transport = { encoder: CAR, decoder: CBOR },
// @ts-ignore
fetch = webfetch,
method,
}) =>
Expand Down
1 change: 1 addition & 0 deletions packages/store/src/signer/lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export const sign = (link, { bucket, expires = 1000, ...options }) => {
accessKeyId: options.accessKeyId,
secretAccessKey: options.secretAccessKey,
region: options.region,
// @ts-ignore
sessionToken: options.sessionToken,
})

Expand Down
8 changes: 1 addition & 7 deletions packages/store/src/type/identity.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
import type {
Capability,
ServiceMethod,
DID,
Resource,
Failure,
} from '@ucanto/server'
import type { Capability, ServiceMethod, DID } from '@ucanto/server'
import type { ServiceError } from './error'

export interface Identity {
Expand Down
Loading

0 comments on commit 40b5e2f

Please sign in to comment.