-
Notifications
You must be signed in to change notification settings - Fork 22
67 lines (67 loc) · 2.27 KB
/
manual.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Manual Deploy
on:
workflow_dispatch:
inputs:
package:
description: 'Package to deploy'
required: true
type: choice
default: 'docs'
options:
- upload-client
- access-client
- docs
environment:
description: 'Environment to deploy'
required: true
type: choice
default: 'staging'
options:
- production
- staging
- dev
jobs:
deploy-access-client:
runs-on: ubuntu-latest
permissions:
contents: write
if: github.event.inputs.package == 'access-client'
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v3
with:
node-version: 18
registry-url: 'https://registry.npmjs.org'
cache: 'pnpm'
- run: pnpm install
- run: pnpm -r --filter @web3-storage/access build
- run: pnpm -r --filter @web3-storage/access run rc || true # this fails because npm does not support workspace protocol so we force it to exit 0
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: 'chore(access): Bump access sdk pre release version'
- run: pnpm -r --filter @web3-storage/access publish --tag next --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
deploy-upload-client:
runs-on: ubuntu-latest
permissions:
contents: write
if: github.event.inputs.package == 'upload-client'
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v3
with:
node-version: 18
registry-url: 'https://registry.npmjs.org'
cache: 'pnpm'
- run: pnpm install
- run: pnpm -r --filter @web3-storage/upload-client build
- run: pnpm -r --filter @web3-storage/upload-client run rc || true # this fails because npm does not support workspace protocol so we force it to exit 0
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: 'chore(client): Bump client pre release version'
- run: pnpm -r --filter @web3-storage/upload-client publish --tag next --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}