alpha
Login
or
Join now
danielroe.dev
/
cross-origin-storage
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
[READ-ONLY] Mirror of https://github.com/danielroe/cross-origin-storage. Load shared dependencies from Cross-Origin Storage (COS).
cross-origin-storage
experimental
nuxt
vite
vite-plugin
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
ci: add uppt release workflow
author
Daniel Roe
date
4 hours ago
(Jun 25, 2026, 5:44 PM +0100)
commit
8a645d2d
8a645d2dcb5b96532459636b845677c084e28612
parent
a2543020
a2543020480daa9313bead67968864e158abfd33
+87
-1
2 changed files
Expand all
Collapse all
Unified
Split
.github
workflows
release.yml
packages
nuxt-cos
package.json
+86
.github/workflows/release.yml
Reviewed
···
1
1
+
name: release
2
2
+
3
3
+
on:
4
4
+
push:
5
5
+
branches: [main]
6
6
+
pull_request:
7
7
+
types: [closed]
8
8
+
branches: [main]
9
9
+
workflow_dispatch:
10
10
+
11
11
+
permissions: {}
12
12
+
13
13
+
jobs:
14
14
+
# Parse commits since the last tag, push a `release/vX.Y.Z` branch, and open
15
15
+
# or update a draft release PR covering every publishable workspace package.
16
16
+
pr:
17
17
+
if: github.event_name == 'push' && github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
18
18
+
runs-on: ubuntu-latest
19
19
+
permissions:
20
20
+
contents: write
21
21
+
pull-requests: write
22
22
+
steps:
23
23
+
- uses: danielroe/uppt/pr@7bcfb5397c37202ef882363f755423130419d28a # v0.5.5
24
24
+
with:
25
25
+
token: ${{ secrets.GITHUB_TOKEN }}
26
26
+
packages: |
27
27
+
packages/*
28
28
+
29
29
+
# The release PR was merged: tag the squash commit, cut a GitHub release from
30
30
+
# the PR body, and dispatch the publish workflow on the new tag.
31
31
+
release:
32
32
+
if: |
33
33
+
github.event_name == 'pull_request'
34
34
+
&& github.event.pull_request.merged == true
35
35
+
&& startsWith(github.event.pull_request.head.ref, 'release/v')
36
36
+
&& github.event.pull_request.head.repo.full_name == github.repository
37
37
+
runs-on: ubuntu-latest
38
38
+
concurrency:
39
39
+
group: release-${{ github.event.pull_request.number }}
40
40
+
cancel-in-progress: false
41
41
+
permissions:
42
42
+
contents: write
43
43
+
actions: write
44
44
+
steps:
45
45
+
- uses: danielroe/uppt/release@7bcfb5397c37202ef882363f755423130419d28a # v0.5.5
46
46
+
with:
47
47
+
token: ${{ secrets.GITHUB_TOKEN }}
48
48
+
packages: |
49
49
+
packages/*
50
50
+
51
51
+
# The chained dispatch lands here on a `vX.Y.Z` tag: install deps, run each
52
52
+
# package's `prepack` build, and pack a tarball per package.
53
53
+
pack:
54
54
+
if: github.event_name == 'workflow_dispatch' && startsWith(github.ref, 'refs/tags/v')
55
55
+
runs-on: ubuntu-latest
56
56
+
concurrency:
57
57
+
group: pack-${{ github.ref }}
58
58
+
cancel-in-progress: false
59
59
+
permissions: {}
60
60
+
outputs:
61
61
+
files: ${{ steps.pack.outputs.files }}
62
62
+
steps:
63
63
+
- id: pack
64
64
+
uses: danielroe/uppt/pack@7bcfb5397c37202ef882363f755423130419d28a # v0.5.5
65
65
+
with:
66
66
+
packages: |
67
67
+
packages/*
68
68
+
69
69
+
# Stage each prebuilt tarball for publish via OIDC trusted publishing.
70
70
+
publish:
71
71
+
if: |
72
72
+
github.event_name == 'workflow_dispatch'
73
73
+
&& startsWith(github.ref, 'refs/tags/v')
74
74
+
&& needs.pack.outputs.files != '[]'
75
75
+
needs: pack
76
76
+
runs-on: ubuntu-latest
77
77
+
concurrency:
78
78
+
group: publish-${{ github.ref }}
79
79
+
cancel-in-progress: false
80
80
+
permissions:
81
81
+
id-token: write
82
82
+
environment: npm
83
83
+
steps:
84
84
+
- uses: danielroe/uppt/publish@7bcfb5397c37202ef882363f755423130419d28a # v0.5.5
85
85
+
with:
86
86
+
files: ${{ needs.pack.outputs.files }}
+1
-1
packages/nuxt-cos/package.json
Reviewed
···
42
42
"build": "nuxt-module-build build",
43
43
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare",
44
44
"lint": "eslint .",
45
45
-
"prepack": "nuxt-module-build build",
45
45
+
"prepack": "pnpm --filter vite-plugin-cross-origin-storage build && nuxt-module-build build",
46
46
"test": "pnpm test:unit",
47
47
"test:unit": "vitest run"
48
48
},