Skip to content

Commit

Permalink
Merge pull request #558 from hildjj/no-docs-for-pre
Browse files Browse the repository at this point in the history
No docs for pre
  • Loading branch information
hildjj authored Oct 3, 2024
2 parents e309671 + 908b292 commit 278cc5b
Show file tree
Hide file tree
Showing 3 changed files with 110 additions and 103 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,15 @@ jobs:
cache: pnpm
- run: pnpm i -r
- run: npm run build
- run: npm run docs
- name: Get version of the project
id: vvver
uses: 'euberdeveloper/ga-project-version@main'
- run: npm pkg delete devDependencies scripts pnpm browserslist packageManager
- name: Create Docs
if: contains(steps.vvver.outputs.version, 'pre') == false
run: npm run docs
- name: Deploy Docs
if: contains(steps.vvver.outputs.version, 'pre') == false
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"clean": "rimraf -g build browser bin/*.map && mkdir browser",
"parser": "node bin/peggy.js -c src/opts.mjs",
"examples": "node bin/peggy.js -c docs/js/options.js docs/js/examples.peggy",
"set_version": "package-extract -o lib/version.js -dcs && package-extract -o docs/index.html -r '(?<=https:\\/\\/unpkg.com\\/peggy@)(?<version>\\d+\\.\\d+\\.\\d+)(?=\\/browser\\/peggy\\.min\\.js)'",
"set_version": "package-extract -o lib/version.js -dcs && package-extract -u -o docs/index.html -r '(?<=https:\\/\\/unpkg.com\\/peggy@)(?<version>\\d+\\.\\d+\\.\\d+)(?=\\/browser\\/peggy\\.min\\.js)'",
"lint": "eslint .",
"ts": "tsc --build tsconfig.json",
"docs": "cd docs && npm run build",
Expand Down Expand Up @@ -74,9 +74,9 @@
"express": "4.21.0",
"glob": "^11.0.0",
"jest": "^29.7.0",
"package-extract": "2.2.0",
"package-extract": "2.3.0",
"rimraf": "^5.0.10",
"rollup": "^4.23.0",
"rollup": "^4.24.0",
"rollup-plugin-ignore": "1.0.10",
"source-map": "^0.8.0-beta.0",
"terser": "^5.34.1",
Expand All @@ -98,7 +98,7 @@
"browserslist": [
"defaults, maintained node versions, not op_mini all"
],
"packageManager": "pnpm@9.11.0",
"packageManager": "pnpm@9.12.0",
"engines": {
"node": ">=18"
}
Expand Down
Loading

0 comments on commit 278cc5b

Please sign in to comment.