Skip to content

Commit 9837463

Browse files
committed
chore(ci): minor tweaks to build workflow
1 parent 6feef8f commit 9837463

2 files changed

Lines changed: 30 additions & 21 deletions

File tree

.github/workflows/release.yml

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,28 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout code
13-
uses: actions/checkout@v4
13+
uses: actions/checkout@v6
14+
15+
- name: Setup Node.js
16+
uses: actions/setup-node@v4
17+
with:
18+
node-version: 22
19+
cache: 'npm'
20+
21+
- name: Install deps and build
22+
run: |
23+
npm ci
24+
npm run build
25+
1426
- name: Create release
1527
id: create_release
16-
uses: actions/create-release@v1
17-
env:
18-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28+
uses: softprops/action-gh-release@v3
1929
with:
20-
tag_name: ${{ github.ref }}
21-
release_name: Release ${{ github.ref }}
22-
body: |
23-
New Release :tada:
24-
- Rename Darkify to Umbra
25-
- Package: `@emrocode/umbra`
26-
- Install with `npm install @emrocode/umbra`
27-
- Breaking change: update imports and package name.
30+
name: Release ${{ github.ref_name }}
31+
body_path: CHANGELOG.md
2832
draft: false
29-
prerelease: false
33+
prerelease: false
34+
files: |
35+
README.md
36+
LICENSE
37+
dist/**

.github/workflows/tests.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Run tests
1+
name: Run test suites
22

33
on:
44
push:
@@ -13,12 +13,13 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Checkout code
16-
uses: actions/checkout@v4
17-
- name: Set up Node.js
18-
uses: actions/setup-node@v4
16+
uses: actions/checkout@v6
17+
18+
- name: Setup Node.js
19+
uses: actions/setup-node@v6
1920
with:
2021
node-version: 22
21-
- name: Install dependencies
22-
run: npm ci
23-
- name: Run tests
24-
run: npm test
22+
cache: 'npm'
23+
24+
- run: npm ci
25+
- run: npm test

0 commit comments

Comments
 (0)