Skip to content

Commit 5eb4ac4

Browse files
Merge pull request #10 from SERVIR/publising/workflow
feat: Publishing workflow
2 parents 1d1b017 + 19fbb79 commit 5eb4ac4

File tree

7 files changed

+10830
-4924
lines changed

7 files changed

+10830
-4924
lines changed
Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: ci
1+
name: lint
22

33
on:
44
push:
@@ -21,24 +21,9 @@ jobs:
2121

2222
- name: Install dependencies
2323
run: npx nypm@latest i
24+
25+
- name: Dev Prepare
26+
run: npm run dev:prepare
2427

2528
- name: Lint
2629
run: npm run lint
27-
28-
test:
29-
runs-on: ubuntu-latest
30-
31-
steps:
32-
- uses: actions/checkout@v4
33-
- run: corepack enable
34-
- uses: actions/setup-node@v4
35-
with:
36-
node-version: 22.5.1
37-
38-
- name: Install dependencies
39-
run: npx nypm@latest i
40-
41-
- name: Playground prepare
42-
run: npm run dev:prepare
43-
44-

.github/workflows/release.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Release
2+
on:
3+
push:
4+
branches:
5+
- main # Specify your default branch
6+
7+
permissions:
8+
contents: write # Allow writing to the repository for tags and releases
9+
statuses: write
10+
issues: write
11+
12+
jobs:
13+
release:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- uses: actions/setup-node@v4
19+
with:
20+
node-version: 22.5.1
21+
22+
- name: Install dependencies
23+
run: npm ci
24+
25+
- name: Prepare for development
26+
run: npm run dev:prepare
27+
28+
- name: Prepack the project
29+
run: npm run prepack
30+
31+
- name: Run audit
32+
run: npm audit signatures
33+
34+
- name: Release
35+
env:
36+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
38+
run: npx semantic-release

0 commit comments

Comments
 (0)