Skip to content

Commit c07ee4f

Browse files
mohammadrezaeicodem.r
and
m.r
committed
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 c07ee4f

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

+5943
-4324
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: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
name: Manually Release & Publish Package
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
skip-release:
6+
description: 'Skip Release Job'
7+
required: true
8+
default: 'false'
9+
# push:
10+
# branches:
11+
# - main
12+
# paths:
13+
# - CHANGELOG.md
14+
# pull_request:
15+
# branches:
16+
# - main
17+
# paths:
18+
# - CHANGELOG.md
19+
jobs:
20+
release:
21+
if: ${{ github.event.inputs.skip-release == 'false' }}
22+
name: Create release package
23+
runs-on: ubuntu-latest
24+
steps:
25+
- name: Checkout to code
26+
uses: actions/checkout@v4
27+
- name: install Node js Version 20.x
28+
uses: actions/setup-node@v4
29+
with:
30+
node-version: '20.x'
31+
- name: Retrieve Release Version
32+
run: echo "PV=$(node version.js)" >> $GITHUB_ENV
33+
- run: cat change-log
34+
- name: Retrieve Release Body
35+
run: |
36+
{
37+
echo 'PB<<EOF'
38+
cat change-log
39+
echo EOF
40+
} >> $GITHUB_ENV
41+
- run: echo ${{env.PV}}
42+
- name: Create Github Release
43+
uses: actions/create-release@v1
44+
env:
45+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46+
with:
47+
tag_name: ${{env.PV}}
48+
release_name: Release v${{env.PV}}
49+
body: ${{env.PB}}
50+
publish-gpr:
51+
needs: release
52+
runs-on: ubuntu-latest
53+
permissions:
54+
contents: read
55+
packages: write
56+
steps:
57+
- uses: actions/checkout@v4
58+
- uses: actions/setup-node@v4
59+
with:
60+
node-version: 20
61+
registry-url: https://npm.pkg.github.com/
62+
- run: npm ci
63+
- run: npm publish
64+
env:
65+
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
66+
publish:
67+
name: Publish to NPM
68+
needs: publish-gpr
69+
runs-on: ubuntu-latest
70+
steps:
71+
- name: Checkout to code
72+
uses: actions/checkout@v4
73+
- name: install Node js Version 20.x
74+
uses: actions/setup-node@v4
75+
with:
76+
node-version: '20.x'
77+
registry-url: 'https://registry.npmjs.org'
78+
- run: npm ci
79+
- name: publish to npm
80+
run: npm publish
81+
env:
82+
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)