Skip to content

Commit

Permalink
fix: readd build script in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
UziTech committed Jan 14, 2023
1 parent 3c140c6 commit d2ab474
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/tests.yml
Expand Up @@ -74,6 +74,19 @@ jobs:
node-version: 'lts/*'
- name: Install Dependencies
run: npm ci
- name: Build 🗜️
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
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]+')
echo "Next Version: $SEMANTIC_RELEASE_NEXT_VERSION"
npm run build
if ! git diff --quiet; then
git config --global user.email "<>"
git config --global user.name "MarkedJS bot"
git commit -am "🗜️ build [skip ci]"
fi
- name: Release 🎉
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
3 changes: 1 addition & 2 deletions package.json
Expand Up @@ -85,8 +85,7 @@
"build": "npm run rollup && npm run minify",
"build:docs": "node build-docs.js",
"rollup": "rollup -c rollup.config.js",
"minify": "uglifyjs lib/marked.umd.js -cm --comments /Copyright/ -o marked.min.js",
"version": "npm run build"
"minify": "uglifyjs lib/marked.umd.js -cm --comments /Copyright/ -o marked.min.js"
},
"engines": {
"node": ">= 12"
Expand Down

1 comment on commit d2ab474

@vercel
Copy link

@vercel vercel bot commented on d2ab474 Jan 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.