Skip to content

Commit

Permalink
Add release action and use semantic-release
Browse files Browse the repository at this point in the history
  • Loading branch information
YuChunTsao committed Oct 30, 2023
1 parent cfa12f5 commit 99b9385
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 3 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Release
on:
push:
branches:
- main
jobs:
release:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18]
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Release
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "maplibre-gl-overview-map",
"private": false,
"version": "0.0.3",
"version": "0.0.0-development",
"description": "An overview map plugin for mapligre-gl-js.",
"license": "MIT",
"author": "YuChunTsao",
Expand Down Expand Up @@ -39,14 +39,16 @@
"build": "tsc && vite build",
"release": "tsc && vite build --mode lib",
"preview": "vite preview",
"format": "prettier . --write"
"format": "prettier . --write",
"semantic-release": "semantic-release"
},
"devDependencies": {
"@types/node": "^20.8.9",
"prettier": "^3.0.3",
"typescript": "^5.0.2",
"vite": "^4.4.5",
"vite-plugin-dts": "^3.6.2"
"vite-plugin-dts": "^3.6.2",
"semantic-release": "^22.0.5"
},
"dependencies": {
"maplibre-gl": "^3.5.1"
Expand Down

0 comments on commit 99b9385

Please sign in to comment.