Skip to content

Commit 3993896

Browse files
committed
chore: update dependencies in package.json
- Added vite as a dependency (v6.2.6) - Added esbuild as a devDependency (v0.25.2)
1 parent ae8abe8 commit 3993896

File tree

6 files changed

+310
-1360
lines changed

6 files changed

+310
-1360
lines changed

.github/workflows/ci.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
build-and-test:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Use Node.js 20
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: 20
20+
cache: "npm"
21+
22+
- name: Install dependencies
23+
run: npm ci
24+
25+
- name: Run tests
26+
run: npm test
27+
28+
- name: Build
29+
run: npm run build

.github/workflows/npm-publish.yml

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,20 @@ on:
55
types: [published]
66

77
jobs:
8-
build:
9-
runs-on: ubuntu-latest
10-
steps:
11-
- uses: actions/checkout@v4
12-
- uses: actions/setup-node@v4
13-
with:
14-
node-version: 20
15-
- run: npm ci
16-
- run: npm test
17-
- run: npm run build
18-
198
publish-npm:
20-
needs: build
219
runs-on: ubuntu-latest
10+
permissions:
11+
contents: read
12+
id-token: write
2213
steps:
2314
- uses: actions/checkout@v4
2415
- uses: actions/setup-node@v4
2516
with:
2617
node-version: 20
2718
registry-url: https://registry.npmjs.org/
2819
- run: npm ci
29-
- run: npm publish --access=public
20+
- run: npm test
21+
- run: npm run build
22+
- run: npm publish
3023
env:
3124
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

.github/workflows/prepare-release.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ on:
44
workflow_dispatch:
55
inputs:
66
version:
7-
description: 'Version to bump to (e.g. patch, minor, major, or specific version)'
7+
description: "Version to bump to (e.g. patch, minor, major, or specific version)"
88
required: true
9-
default: 'patch'
9+
default: "patch"
1010

1111
jobs:
1212
prepare-release:
@@ -15,26 +15,26 @@ jobs:
1515
- uses: actions/checkout@v4
1616
with:
1717
fetch-depth: 0
18-
18+
1919
- name: Setup Node.js
2020
uses: actions/setup-node@v4
2121
with:
2222
node-version: 20
23-
23+
2424
- name: Install dependencies
2525
run: npm ci
26-
26+
2727
- name: Update version
2828
run: |
2929
npm version ${{ github.event.inputs.version }} --no-git-tag-version
3030
NEW_VERSION=$(node -p "require('./package.json').version")
3131
echo "NEW_VERSION=$NEW_VERSION" >> $GITHUB_ENV
32-
32+
3333
- name: Generate changelog
3434
id: changelog
3535
run: |
3636
npx conventional-changelog-cli -p angular -i CHANGELOG.md -s
37-
37+
3838
- name: Create Pull Request
3939
uses: peter-evans/create-pull-request@v7
4040
with:
@@ -43,7 +43,7 @@ jobs:
4343
title: "chore(release): prepare release v${{ env.NEW_VERSION }}"
4444
body: |
4545
Prepare release v${{ env.NEW_VERSION }}
46-
46+
4747
- Update version in package.json
4848
- Update CHANGELOG.md
4949
base: main

.husky/pre-commit

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,2 @@
1-
#!/bin/sh
2-
. "$(dirname "$0")/_/husky.sh"
3-
41
npx lint-staged
52
npm run build

0 commit comments

Comments
 (0)