From 9a89d9a9ee6f0365bac94536df1a70ccdc60fd63 Mon Sep 17 00:00:00 2001 From: oflg Date: Sun, 24 Dec 2023 15:12:43 +0800 Subject: [PATCH] chore(package.json): add dist directory to release --- .github/workflows/release.yml | 11 ++++++----- package.json | 14 +++++++------- 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 29fd73d..658571a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -28,14 +28,15 @@ jobs: - name: Build library and static website run: npm run publish + - name: Release + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + run: npx semantic-release + - name: Deploy uses: peaceiris/actions-gh-pages@v3 with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./dist - - name: Release - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - run: npx semantic-release diff --git a/package.json b/package.json index 8237f42..24442c1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "tidme", - "version": "1.17.1", + "version": "1.17.2", "description": " Lifelong knowledge, deep in mind.", "scripts": { "dev": "tiddlywiki-plugin-dev dev", @@ -118,18 +118,18 @@ { "assets": [ { - "path": "dist/empty/*.html", - "name": "Tidme${nextRelease.gitTag}.zip", + "path": "dist/empty/**", + "name": "Tidme${nextRelease.gitTag}", "label": "Tidme (${nextRelease.gitTag})" }, { - "path": "dist/manual/*.html", - "name": "Tidme-Manual${nextRelease.gitTag}.zip", + "path": "dist/manual/**", + "name": "Tidme-Manual${nextRelease.gitTag}", "label": "Tidme Manual (${nextRelease.gitTag})" }, { - "path": "dist/library/recipes/library/tiddlers/*.json", - "name": "Tidme-Plugin${nextRelease.gitTag}.zip", + "path": "dist/library/recipes/library/tiddlers/**", + "name": "Tidme-Plugin${nextRelease.gitTag}", "label": "Tidme Plugin (${nextRelease.gitTag})" } ]