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 11name : Release apex version
22
33on :
4- push :
5- branches :
6- - main
7- - release-*
8- tags :
9- - v*
104 workflow_dispatch :
115 inputs :
126 version :
159
1610jobs :
1711 release :
12+ runs-on : ubuntu-latest
1813 permissions :
1914 contents : write
20- runs-on : ubuntu-latest
2115 steps :
2216 - uses : actions/checkout@v4
2317 with :
4135 generateReleaseNotes : true
4236 makeLatest : true
4337 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