File tree Expand file tree Collapse file tree 2 files changed +33
-29
lines changed Expand file tree Collapse file tree 2 files changed +33
-29
lines changed Original file line number Diff line number Diff line change
1
+ name : Build
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+ - release-*
8
+ tags :
9
+ - v*
10
+
11
+ jobs :
12
+ build :
13
+ runs-on : ubuntu-latest
14
+ permissions :
15
+ contents : read
16
+ id-token : write # The OIDC ID token is used for authentication with JSR.
17
+ steps :
18
+ - uses : actions/checkout@v4
19
+ - uses : denoland/setup-deno@v2
20
+ with :
21
+ deno-version : v2.x
22
+
23
+ # - name: Run tests
24
+ # run: deno test
25
+
26
+ - name : Is Release?
27
+ if : startswith(github.ref, 'refs/tags/v')
28
+ run : echo "DEPLOY_PACKAGE=true" >> $GITHUB_ENV
29
+
30
+ - name : Publish to npm
31
+ if : env.DEPLOY_PACKAGE == 'true'
32
+ run : npx jsr publish
Original file line number Diff line number Diff line change 1
1
name : Release apex version
2
2
3
3
on :
4
- push :
5
- branches :
6
- - main
7
- - release-*
8
- tags :
9
- - v*
10
4
workflow_dispatch :
11
5
inputs :
12
6
version :
15
9
16
10
jobs :
17
11
release :
12
+ runs-on : ubuntu-latest
18
13
permissions :
19
14
contents : write
20
- runs-on : ubuntu-latest
21
15
steps :
22
16
- uses : actions/checkout@v4
23
17
with :
41
35
generateReleaseNotes : true
42
36
makeLatest : true
43
37
tag : ${{ inputs.version }}
44
-
45
- build :
46
- runs-on : ubuntu-latest
47
- permissions :
48
- contents : read
49
- id-token : write # The OIDC ID token is used for authentication with JSR.
50
- steps :
51
- - uses : actions/checkout@v4
52
- - uses : denoland/setup-deno@v2
53
- with :
54
- deno-version : v2.x
55
-
56
- # - name: Run tests
57
- # run: deno test
58
-
59
- - name : Is Release?
60
- if : startswith(github.ref, 'refs/tags/v')
61
- run : echo "DEPLOY_PACKAGE=true" >> $GITHUB_ENV
62
-
63
- - name : Publish to npm
64
- if : env.DEPLOY_PACKAGE == 'true'
65
- run : npx jsr publish
You can’t perform that action at this time.
0 commit comments