Skip to content

Commit 231e155

Browse files
authored
ci: split publish actions into seperate workflows (#1554)
1 parent edf5046 commit 231e155

8 files changed

+130
-110
lines changed

.github/workflows/publish.yaml

Lines changed: 0 additions & 110 deletions
This file was deleted.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: publish_dart_frog
2+
3+
on:
4+
push:
5+
tags:
6+
- "dart_frog-v*.*.*"
7+
8+
jobs:
9+
publish:
10+
permissions:
11+
id-token: write # Required for authentication using OIDC
12+
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/dart_pub_publish.yml@v1
13+
with:
14+
working_directory: "packages/dart_frog"
15+
secrets:
16+
pub_credentials: ${{ secrets.PUB_CREDENTIALS }}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: publish_dart_frog_auth
2+
3+
on:
4+
push:
5+
tags:
6+
- "dart_frog_auth-v*.*.*"
7+
8+
jobs:
9+
publish:
10+
permissions:
11+
id-token: write # Required for authentication using OIDC
12+
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/dart_pub_publish.yml@v1
13+
with:
14+
working_directory: "packages/dart_frog_auth"
15+
secrets:
16+
pub_credentials: ${{ secrets.PUB_CREDENTIALS }}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: publish_dart_frog_cli
2+
3+
on:
4+
push:
5+
tags:
6+
- "dart_frog_cli-v*.*.*"
7+
8+
jobs:
9+
publish:
10+
permissions:
11+
id-token: write # Required for authentication using OIDC
12+
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/dart_pub_publish.yml@v1
13+
with:
14+
working_directory: "packages/dart_frog_cli"
15+
secrets:
16+
pub_credentials: ${{ secrets.PUB_CREDENTIALS }}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: publish_dart_frog_gen
2+
3+
on:
4+
push:
5+
tags:
6+
- "dart_frog_gen-v*.*.*"
7+
8+
jobs:
9+
publish:
10+
permissions:
11+
id-token: write # Required for authentication using OIDC
12+
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/dart_pub_publish.yml@v1
13+
with:
14+
working_directory: "packages/dart_frog_gen"
15+
secrets:
16+
pub_credentials: ${{ secrets.PUB_CREDENTIALS }}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: publish_dart_frog_test
2+
3+
on:
4+
push:
5+
tags:
6+
- "dart_frog_test-v*.*.*"
7+
8+
jobs:
9+
publish:
10+
permissions:
11+
id-token: write # Required for authentication using OIDC
12+
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/dart_pub_publish.yml@v1
13+
with:
14+
working_directory: "packages/dart_frog_test"
15+
secrets:
16+
pub_credentials: ${{ secrets.PUB_CREDENTIALS }}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: publish_dart_frog_web_socket
2+
3+
on:
4+
push:
5+
tags:
6+
- "dart_frog_web_socket-v*.*.*"
7+
8+
jobs:
9+
publish:
10+
permissions:
11+
id-token: write # Required for authentication using OIDC
12+
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/dart_pub_publish.yml@v1
13+
with:
14+
working_directory: "packages/dart_frog_web_socket"
15+
secrets:
16+
pub_credentials: ${{ secrets.PUB_CREDENTIALS }}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: publish_extension_vscode
2+
3+
on:
4+
push:
5+
tags:
6+
- "vscode-v*.*.*"
7+
8+
jobs:
9+
publish_extension:
10+
runs-on: ubuntu-latest
11+
12+
defaults:
13+
run:
14+
working-directory: extensions/vscode
15+
16+
steps:
17+
- name: 📚 Git Checkout
18+
uses: actions/checkout@v4
19+
20+
- name: ⚙️ Setup Node
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: lts
24+
25+
- name: 🎉 Publish VS Code Extension
26+
run: |
27+
npm install -g @vscode/vsce
28+
29+
echo "${{ secrets.VSCODE_CREDENTIALS }}" > vscode-credentials
30+
vsce login VeryGoodVentures < vscode-credentials
31+
32+
tag=${GITHUB_REF#refs/*/}
33+
version=$(echo $tag | sed -En "s/^(.*)-v(.*)/\2/p")
34+
vsce publish "${version}" --no-update-package-json

0 commit comments

Comments
 (0)