Skip to content

Commit d2ab474

Browse files
committed
fix: readd build script in ci
1 parent 3c140c6 commit d2ab474

2 files changed

Lines changed: 14 additions & 2 deletions

File tree

.github/workflows/tests.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,19 @@ jobs:
7474
node-version: 'lts/*'
7575
- name: Install Dependencies
7676
run: npm ci
77+
- name: Build 🗜️
78+
env:
79+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
80+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
81+
run: |
82+
export SEMANTIC_RELEASE_NEXT_VERSION=$(npx semantic-release --no-ci --dry-run | grep -oP 'The next release version is \K[0-9]+\.[0-9]+\.[0-9]+')
83+
echo "Next Version: $SEMANTIC_RELEASE_NEXT_VERSION"
84+
npm run build
85+
if ! git diff --quiet; then
86+
git config --global user.email "<>"
87+
git config --global user.name "MarkedJS bot"
88+
git commit -am "🗜️ build [skip ci]"
89+
fi
7790
- name: Release 🎉
7891
env:
7992
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,7 @@
8585
"build": "npm run rollup && npm run minify",
8686
"build:docs": "node build-docs.js",
8787
"rollup": "rollup -c rollup.config.js",
88-
"minify": "uglifyjs lib/marked.umd.js -cm --comments /Copyright/ -o marked.min.js",
89-
"version": "npm run build"
88+
"minify": "uglifyjs lib/marked.umd.js -cm --comments /Copyright/ -o marked.min.js"
9089
},
9190
"engines": {
9291
"node": ">= 12"

0 commit comments

Comments
 (0)