Skip to content

Commit

Permalink
Merge pull request peggyjs#561 from hildjj/not-latest
Browse files Browse the repository at this point in the history
Not latest
  • Loading branch information
hildjj authored Oct 3, 2024
2 parents 9dd3bdf + 4e48040 commit 026299f
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 10 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,22 @@ jobs:
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
if: ${{ !contains(steps.vvver.outputs.version, '-') }}
run: npm run docs
- name: Deploy Docs
if: contains(steps.vvver.outputs.version, 'pre') == false
if: ${{ !contains(steps.vvver.outputs.version, '-') }}
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/_site
publish_branch: docs
- run: npm publish --access public --provenance
- name: Publish full release
run: npm publish --access public --provenance
if: ${{ !contains(steps.vvver.outputs.version, '-') }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish pre-release
run: npm publish --access public --provenance --tag pre
if: ${{ contains(steps.vvver.outputs.version, '-') }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<div class="label">Download browser version</div>
<span id="download">
<a title="Download a minified version of Peggy for the browser"
href="https://unpkg.com/peggy@4.0.3/browser/peggy.min.js">minified</a>
href="https://unpkg.com/peggy@4.1.0/browser/peggy.min.js">minified</a>
</span>
<iframe id="discord"
src="https://discordapp.com/widget?id=985995982909100082&theme=dark"
Expand Down
2 changes: 1 addition & 1 deletion docs/js/examples.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// @generated by Peggy 4.0.3.
// @generated by Peggy 4.1.0.
//
// https://peggyjs.org/
(function(root) {
Expand Down
2 changes: 1 addition & 1 deletion lib/parser.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// @generated by Peggy 4.1.0-pre.1.
// @generated by Peggy 4.1.0.
//
// https://peggyjs.org/

Expand Down
2 changes: 1 addition & 1 deletion lib/version.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "peggy",
"version": "4.1.0-pre.1",
"version": "4.1.0",
"description": "Parser generator for JavaScript",
"keywords": [
"grammar",
Expand Down
2 changes: 1 addition & 1 deletion test/cli/fixtures/imports_peggy.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// @generated by Peggy 4.0.3.
// @generated by Peggy 4.1.0.
//
// https://peggyjs.org/

Expand Down
2 changes: 1 addition & 1 deletion test/cli/fixtures/lib.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// @generated by Peggy 4.0.3.
// @generated by Peggy 4.1.0.
//
// https://peggyjs.org/

Expand Down

0 comments on commit 026299f

Please sign in to comment.