Skip to content

Commit d9ffc29

Browse files
mohammadrezaeicodem.r
and
m.r
authored
V7.0.0 (#4)
* Create manually_test.yml * feature: init V7.0.0 * add comment to interface and main func & update readme --------- Co-authored-by: m.r <mr@example.com>
1 parent 01458f8 commit d9ffc29

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+5933
-4323
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
2+
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
3+
4+
name: Manually Publish Github Package
5+
6+
# on:
7+
# release:
8+
# types: [created]
9+
# name: Manually Test
10+
on:
11+
workflow_dispatch
12+
# inputs:
13+
# branch:
14+
# description: 'Branch for Publish'
15+
# required: true
16+
# default: 'main'
17+
18+
jobs:
19+
build:
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@v4
23+
- uses: actions/setup-node@v4
24+
with:
25+
node-version: 20
26+
- run: npm ci
27+
- run: npm test
28+
29+
publish-gpr:
30+
needs: build
31+
runs-on: ubuntu-latest
32+
permissions:
33+
contents: read
34+
packages: write
35+
steps:
36+
- uses: actions/checkout@v4
37+
- uses: actions/setup-node@v4
38+
with:
39+
node-version: 20
40+
registry-url: https://npm.pkg.github.com/
41+
- run: npm ci
42+
- run: npm publish
43+
env:
44+
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
name: Manually Release & Publish Package
2+
on:
3+
workflow_dispatch
4+
# push:
5+
# branches:
6+
# - main
7+
# paths:
8+
# - CHANGELOG.md
9+
# pull_request:
10+
# branches:
11+
# - main
12+
# paths:
13+
# - CHANGELOG.md
14+
jobs:
15+
release:
16+
name: Create release package
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Checkout to code
20+
uses: actions/checkout@v4
21+
- name: install Node js Version 20.x
22+
uses: actions/setup-node@v4
23+
with:
24+
node-version: '20.x'
25+
- name: Retrieve Release Version
26+
run: echo "PV=$(node version.js)" >> $GITHUB_ENV
27+
- run: cat change-log
28+
- name: Retrieve Release Body
29+
run: |
30+
{
31+
echo 'PB<<EOF'
32+
cat change-log
33+
echo EOF
34+
} >> $GITHUB_ENV
35+
- run: echo ${{env.PV}}
36+
- name: Create Github Release
37+
uses: actions/create-release@v1
38+
env:
39+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40+
with:
41+
tag_name: ${{env.PV}}
42+
release_name: Release v${{env.PV}}
43+
body: ${{env.PB}}
44+
publish-gpr:
45+
needs: build
46+
runs-on: ubuntu-latest
47+
permissions:
48+
contents: read
49+
packages: write
50+
steps:
51+
- uses: actions/checkout@v4
52+
- uses: actions/setup-node@v4
53+
with:
54+
node-version: 20
55+
registry-url: https://npm.pkg.github.com/
56+
- run: npm ci
57+
- run: npm publish
58+
env:
59+
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
60+
publish:
61+
name: Publish to NPM
62+
needs: release
63+
runs-on: ubuntu-latest
64+
steps:
65+
- name: Checkout to code
66+
uses: actions/checkout@v4
67+
- name: install Node js Version 20.x
68+
uses: actions/setup-node@v4
69+
with:
70+
node-version: '20.x'
71+
registry-url: 'https://registry.npmjs.org'
72+
- run: npm ci
73+
- name: publish to npm
74+
run: npm publish
75+
env:
76+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

.github/workflows/manually-test.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Manually Test
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
branch:
6+
description: 'Test Branch'
7+
required: true
8+
default: 'main'
9+
os:
10+
description: 'Operating System'
11+
type: choice
12+
required: true
13+
default: 'ubuntu-latest'
14+
options:
15+
- 'windows-latest'
16+
- 'ubuntu-latest'
17+
node_version:
18+
description: 'Node Environment'
19+
required: true
20+
default: '20.x'
21+
jobs:
22+
test:
23+
name: Test
24+
timeout-minutes: 30
25+
continue-on-error: true
26+
runs-on: ${{ github.event.inputs.os }}
27+
steps:
28+
- name: Checkout to code
29+
uses: actions/checkout@v4
30+
with:
31+
ref: ${{ github.event.inputs.branch }}
32+
- name: install Node js Version 20
33+
uses: actions/setup-node@v4
34+
with:
35+
node-version: ${{ github.event.inputs.node_version }}
36+
- name: install dependency
37+
run: npm install
38+
- name: Run test
39+
run: npm run test

.github/workflows/release.yml

Lines changed: 0 additions & 61 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,24 @@
11
# Changelog
22

3+
## Version 7.0.0 (2025-02-16)
4+
5+
### New Features
6+
7+
- A drop-down option (multi-select option) provides the ability to create a cell that contains multiple selectable values.`sheet`->`[n]`->`dropDowns`
8+
- The `replaceInExcel` functionality in Excel allows you to replace data in an existing file using flags provided within the spreadsheet.
9+
10+
### Bug Fixes
11+
12+
- `generateExcel` supports empty objects and will generate an empty Excel file.
13+
14+
> [!NOTE]
15+
> The related interface has not changed, so the sheet needs to be provided in TypeScript.
16+
17+
### Improvements
18+
19+
- Begin adding JSDoc comments to the main functions and interfaces.
20+
21+
322
## Version 6.0.1 (2024-08-11)
423

524
### New Features

0 commit comments

Comments
 (0)