Skip to content

Commit eb7ab61

Browse files
authored
ci: cleanup workflows (#171)
1 parent 8e62eba commit eb7ab61

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ name: Build Theme
22
on:
33
push:
44
branches:
5-
- develop
65
- main
6+
- develop
77
pull_request:
88
branches:
9-
- develop
109
- main
10+
- develop
1111
jobs:
1212
build:
1313
runs-on: ubuntu-latest
@@ -20,7 +20,8 @@ jobs:
2020
with:
2121
node-version: 20.x
2222
registry-url: "https://registry.npmjs.org"
23+
cache: "npm"
2324
- name: Install dependencies 📦
24-
run: npm install
25+
run: npm ci
2526
- name: Run build lib 🛠️
2627
run: npm run build

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- uses: actions/checkout@v4
10-
- name: Use Node.js '20.x'
10+
- name: Setup Node
1111
uses: actions/setup-node@v4
1212
with:
13-
node-version: "20.x"
13+
node-version: 20.x
1414
registry-url: "https://registry.npmjs.org"
1515
- name: Install dependencies 📦
16-
run: npm install
16+
run: npm ci
1717
- name: Build lib 🛠️
1818
run: npm run build
1919
- name: Publish NPM lib 📋

0 commit comments

Comments
 (0)