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

wip: update package #1

Merged
merged 13 commits into from
Dec 19, 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
37 changes: 37 additions & 0 deletions .github/workflows/publish-pr-commit-pkg.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Publish PR Commit Pkg

on:
push:
branches:
- master
tags:
- '!**'
pull_request:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest
if: ${{ github.repository == 'Jungzl/echarts-gl' }}
steps:
- name: Checkout code
uses: actions/checkout@v4

- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: lts/jod
cache: 'pnpm'

- name: Setup pnpm
uses: pnpm/action-setup@v4

- name: Install dependencies
run: pnpm install

- name: Build
run: pnpm release

- name: Publish
run: pnpx pkg-pr-new publish
40 changes: 40 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Release

on:
push:
tags:
- 'v*'

jobs:
release:
permissions:
id-token: write
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install pnpm
uses: pnpm/action-setup@v4

- name: Set node
uses: actions/setup-node@v4
with:
node-version: lts/jod
cache: pnpm
registry-url: 'https://registry.npmjs.org'

- run: npx changelogithub
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

- name: Install Dependencies
run: pnpm i --no-frozen-lockfile

- name: Publish to NPM
run: pnpm publish --access public --no-git-checks
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
NPM_CONFIG_PROVENANCE: true
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,5 @@ doc/example/data/raw
todo
tmp
/lib
package-lock.json
test/data/gps
test/data/gps2
test/data/gps2
1 change: 1 addition & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* original license from echarts-gl */
BSD 3-Clause License

Copyright (c) 2017, Baidu Inc.
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This is a fork of [echarts-gl](https://github.com/ecomfe/echarts-gl)

# ECHARTS-GL

ECharts-GL is an extension pack of [Apache ECharts](http://echarts.apache.org/), which providing 3D plots, globe visualization and WebGL acceleration.
Expand Down
4 changes: 4 additions & 0 deletions babel.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/* jshint node: true */
module.exports = {
plugins: []
};
4 changes: 0 additions & 4 deletions babel.config.js

This file was deleted.

21 changes: 0 additions & 21 deletions build/glsl2js.js

This file was deleted.

Loading
Loading