Skip to content

Commit bb07f9c

Browse files
committed
chore: update workflows to use NPM trusted publishers
1 parent 3f2ca72 commit bb07f9c

13 files changed

+2212
-1373
lines changed

.github/workflows/deploy-website-auto.yaml

Lines changed: 0 additions & 42 deletions
This file was deleted.

.github/workflows/deploy-website-manually.yaml

Lines changed: 0 additions & 41 deletions
This file was deleted.

.github/workflows/deploy-website-on-release.yaml

Lines changed: 0 additions & 45 deletions
This file was deleted.

.github/workflows/deploy.yaml

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
2+
name: Deploy
3+
4+
on:
5+
# Manual deployment trigger
6+
workflow_dispatch:
7+
inputs:
8+
deploy_type:
9+
description: 'type'
10+
required: true
11+
type: choice
12+
options:
13+
- 'nightly'
14+
- 'latest'
15+
default: 'nightly'
16+
17+
# Scheduled nightly deployments
18+
schedule:
19+
- cron: '0 0 * * *' # Runs daily at midnight UTC
20+
21+
jobs:
22+
deploy-nightly:
23+
if: ${{ github.event.inputs.deploy_type == 'nightly' || github.event_name == 'schedule' }}
24+
runs-on: ubuntu-latest
25+
steps:
26+
- uses: actions/checkout@v4
27+
- uses: actions/[email protected]
28+
with:
29+
node-version: 22
30+
cache: 'yarn'
31+
32+
- name: Install
33+
run: |
34+
export NODE_OPTIONS="--max_old_space_size=4096"
35+
yarn install
36+
37+
- name: Update version.md
38+
run: |
39+
touch packages/website/static/version.md
40+
git log -1 &>> packages/website/static/version.md
41+
42+
- name: Build
43+
env:
44+
DEPLOYMENT_TYPE: "nightly"
45+
run: |
46+
yarn ci:deploy:nightly
47+
48+
- name: Deploy
49+
uses: JamesIves/[email protected]
50+
with:
51+
branch: gh-pages # The branch the action should deploy to.
52+
folder: packages/website/build # The folder the action should deploy.
53+
target-folder: nightly
54+
clean: true
55+
56+
deploy-latest:
57+
runs-on: ubuntu-latest
58+
if: ${{ github.event.inputs.deploy_type == 'latest' }}
59+
steps:
60+
- uses: actions/checkout@v4
61+
- uses: actions/[email protected]
62+
with:
63+
node-version: 22
64+
cache: 'yarn'
65+
66+
- name: Install
67+
run: |
68+
export NODE_OPTIONS="--max_old_space_size=4096"
69+
yarn install
70+
71+
- name: Update version.md
72+
run: |
73+
touch packages/website/static/version.md
74+
git log -1 &>> packages/website/static/version.md
75+
76+
- name: Build
77+
env:
78+
DEPLOYMENT_TYPE: "latest"
79+
run: |
80+
yarn ci:deploy
81+
82+
- name: Deploy
83+
uses: JamesIves/[email protected]
84+
with:
85+
branch: gh-pages # The branch the action should deploy to.
86+
folder: packages/website/build # The folder the action should deploy.
87+
clean: true
88+
clean-exclude: |
89+
nightly
90+
v1
91+
googlea519d963aa8f580f.html

.github/workflows/release-downport.yaml

Lines changed: 0 additions & 52 deletions
This file was deleted.

.github/workflows/release-experimental.yaml

Lines changed: 0 additions & 26 deletions
This file was deleted.

.github/workflows/release-rc-auto.yaml

Lines changed: 0 additions & 72 deletions
This file was deleted.

0 commit comments

Comments
 (0)