Repository navigation
72 lines (66 loc) · 2.31 KB
/
Copy pathrelease.yml
File metadata and controls
72 lines (66 loc) · 2.31 KB
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
68
69
70
71
72
name: Release
on:
push:
tags: ["v*"]
# Started on a tag by the version workflow, or by hand to retry a tag.
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false
permissions: {}
env:
NODE_VERSION: "24.22.1"
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 30
permissions:
contents: read
outputs:
name: ${{ steps.release.outputs.name }}
version: ${{ steps.release.outputs.version }}
channel: ${{ steps.release.outputs.channel }}
artifact_id: ${{ steps.pack.outputs.artifact-id }}
sha256: ${{ steps.pack.outputs.sha256 }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
ref: ${{ github.sha }}
fetch-depth: 0
persist-credentials: false
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: ${{ env.NODE_VERSION }}
package-manager-cache: false
- id: release
uses: convex/npm-release-actions/validate-tag@3a142e21f421319890981579b8952267bc11fc53 # v0.3.0
- run: npm ci
- uses: convex/npm-release-actions/check-release-notes@3a142e21f421319890981579b8952267bc11fc53 # v0.3.0
- run: npm run build
- run: npm run check
- name: Run E2E tests and verify generated code
env:
CONVEX_AGENT_MODE: anonymous
CONVEX_DISABLE_TELEMETRY: "1"
run: |
npm run test:e2e
git diff --exit-code -- src/component/_generated
test -z "$(git ls-files --others --exclude-standard src/component/_generated)"
- id: pack
uses: convex/npm-release-actions/pack@3a142e21f421319890981579b8952267bc11fc53 # v0.3.0
stage:
needs: build
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
contents: read
id-token: write
steps:
- uses: convex/npm-release-actions/stage@3a142e21f421319890981579b8952267bc11fc53 # v0.3.0
with:
artifact-id: ${{ needs.build.outputs.artifact_id }}
sha256: ${{ needs.build.outputs.sha256 }}
name: ${{ needs.build.outputs.name }}
version: ${{ needs.build.outputs.version }}
channel: ${{ needs.build.outputs.channel }}
node-version: ${{ env.NODE_VERSION }}