Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add support for opening .xlsx files #54

Merged
merged 2 commits into from
Apr 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 17 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,28 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
- uses: actions/checkout@v3

- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 8

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 16
node-version: 20
cache: pnpm
registry-url: ${{ secrets.VERDACCIO_URL }}
scope: '@univerjs-pro'
env:
NODE_AUTH_TOKEN: ${{ secrets.VERDACCIO_TOKEN }}

- name: Build
id: build
run: |
npm install
npm run build
pnpm i
pnpm build
mkdir ${{ env.PLUGIN_NAME }}
echo "Waiting for build files..."
while [ ! -f dist/main.js ] || [ ! -f dist/manifest.json ] || [ ! -f dist/styles.css ]; do
Expand Down
48 changes: 48 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: 🩺 Test

on:
push:
branches: [master]
pull_request:
branches: [master]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 15

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 8

- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: 18

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
registry-url: ${{ secrets.VERDACCIO_URL }}
scope: '@univerjs-pro'
env:
NODE_AUTH_TOKEN: ${{ secrets.VERDACCIO_TOKEN }}

- name: 📦 Build
run: |
pnpm i
pnpm run build
1 change: 1 addition & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ export default antfu({
}, {
rules: {
'no-new': 'off',
'ts/ban-ts-comment': 'off',
},
})
20 changes: 15 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"@univerjs/engine-render": "^0.1.7",
"@univerjs/facade": "^0.1.7",
"@univerjs/find-replace": "^0.1.7",
"@univerjs/protocol": "^0.1.17",
"@univerjs/rpc": "^0.1.7",
"@univerjs/sheets": "^0.1.7",
"@univerjs/sheets-conditional-formatting-ui": "^0.1.7",
Expand All @@ -42,19 +43,28 @@
"@univerjs/ui": "^0.1.7",
"defu": "^6.1.4"
},
"optionalDependencies": {
"@univerjs-pro/exchange-wasm": "^1.0.3"
},
"devDependencies": {
"@antfu/eslint-config": "^2.8.3",
"@antfu/eslint-config": "^2.13.3",
"@release-it/conventional-changelog": "^8.0.1",
"@types/node": "^20.11.28",
"@types/node": "^20.12.7",
"@univerjs/vite-plugin": "^0.3.2",
"builtin-modules": "^3.3.0",
"dotenv": "^16.4.5",
"eslint": "^8.57.0",
"lint-staged": "^15.2.2",
"obsidian": "1.5.7-1",
"release-it": "^17.1.1",
"release-it": "^17.2.0",
"simple-git-hooks": "^2.11.1",
"typescript": "^5.4.2",
"vite": "^5.1.6"
"typescript": "^5.4.5",
"vite": "^5.2.8"
},
"simple-git-hooks": {
"pre-commit": "pnpm lint-staged"
},
"lint-staged": {
"*": "eslint --fix"
}
}
Loading
Loading