File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 }}
Original file line number Diff line number Diff line change 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"
You can’t perform that action at this time.
0 commit comments