Skip to content

Commit 60b4c22

Browse files
committed
chore: Update npm dependencies and GitHub Actions workflow for publishing to npm and creating GitHub releases
1 parent d3d3c7c commit 60b4c22

2 files changed

Lines changed: 4 additions & 28 deletions

File tree

.github/workflows/publish.yml

Lines changed: 3 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -5,34 +5,8 @@ on:
55
branches: master
66

77
jobs:
8-
build:
9-
runs-on: ubuntu-latest
10-
11-
steps:
12-
- name: Checkout code
13-
uses: actions/checkout@v4
14-
15-
- name: Setup Node.js
16-
uses: actions/setup-node@v3
17-
with:
18-
node-version: 20
19-
registry-url: 'https://registry.npmjs.org'
20-
21-
- name: Install dependencies
22-
run: npm ci
23-
24-
- name: Build project
25-
run: npm run build
26-
27-
- name: Upload build artifacts
28-
uses: actions/upload-artifact@v3
29-
with:
30-
name: build-artifacts
31-
path: ./build # Adjust this path to your actual build output
32-
338
npm_publish:
349
runs-on: ubuntu-latest
35-
needs: build
3610

3711
steps:
3812
- name: Checkout code
@@ -59,7 +33,6 @@ jobs:
5933

6034
github_publish:
6135
runs-on: ubuntu-latest
62-
needs: build
6336

6437
steps:
6538
- name: Checkout code
@@ -83,6 +56,9 @@ jobs:
8356
- name: Install dependencies
8457
run: npm ci
8558

59+
- name: Build project
60+
run: npm run build
61+
8662
- name: Publish to GitHub Packages
8763
run: npm publish
8864
env:

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "modulatecss",
3-
"version": "1.0.31",
3+
"version": "1.0.32",
44
"description": "...",
55
"main": "dist/css/modulate.min.css",
66
"style": "dist/css/modulate.min.css",

0 commit comments

Comments
 (0)