Skip to content

Commit 808044c

Browse files
authored
Fixing workflows (#39)
1 parent 2158204 commit 808044c

File tree

2 files changed

+33
-29
lines changed

2 files changed

+33
-29
lines changed

.github/workflows/build.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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

.github/workflows/release.yml

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
name: Release apex version
22

33
on:
4-
push:
5-
branches:
6-
- main
7-
- release-*
8-
tags:
9-
- v*
104
workflow_dispatch:
115
inputs:
126
version:
@@ -15,9 +9,9 @@ on:
159

1610
jobs:
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:
@@ -41,25 +35,3 @@ jobs:
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

0 commit comments

Comments
 (0)