Skip to content

Commit abbe68b

Browse files
authored
Fix optional params (#7)
fix: optional params
1 parent 352046a commit abbe68b

9 files changed

Lines changed: 12329 additions & 7258 deletions

File tree

.github/workflows/node.js.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ jobs:
1212

1313
strategy:
1414
matrix:
15-
node-version: [14.x, 16.x, 18.x, 20.x]
15+
node-version: [24.x]
1616

1717
steps:
18-
- uses: actions/checkout@v2
18+
- uses: actions/checkout@v4
1919
- name: Use Node.js ${{ matrix.node-version }}
20-
uses: actions/setup-node@v2
20+
uses: actions/setup-node@v4
2121
with:
2222
node-version: ${{ matrix.node-version }}
2323
cache: 'npm'

.github/workflows/publish.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: NPM publish
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
versionType:
6+
type: choice
7+
description: Version Type
8+
required: true
9+
options:
10+
- patch
11+
- minor
12+
- major
13+
permissions:
14+
id-token: write
15+
contents: write
16+
jobs:
17+
publish:
18+
name: Publishing to NPM
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v4
22+
with:
23+
token: ${{ secrets.GH_ACCESS_TOKEN_V2 }}
24+
- name: Setup Node JS
25+
uses: actions/setup-node@v4
26+
with:
27+
node-version: 24
28+
registry-url: https://registry.npmjs.org
29+
30+
# Ensure npm 11.5.1 or later is installed
31+
- name: Update npm
32+
run: npm install -g npm@latest
33+
- run: npm ci
34+
- run: git config --global user.email "y-infra@yandex.ru"
35+
- run: git config --global user.name "y-infra"
36+
- run: npm run release -- --release-as ${{ github.event.inputs.versionType }}
37+
- run: npm publish
38+
- run: git push --follow-tags

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
node_modules
22
build
3+
.idea

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
12.22.12
1+
24.13.1

0 commit comments

Comments
 (0)