Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
crummy committed Dec 11, 2024
2 parents 0da5d99 + 1b6af98 commit 35947fe
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/publish-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# from https://docs.github.com/en/actions/use-cases-and-examples/publishing-packages/publishing-nodejs-packages
name: Publish Package to npmjs
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3 changes: 3 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import ppeg from "./pPEG.mjs"

export { ppeg }
29 changes: 29 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"name": "ppegjs",
"version": "0.1.1",
"description": "A portable Parser Expression Grammar.",
"main": "index.js",
"directories": {
"example": "examples",
"test": "tests"
},
"scripts": {
"test": "node peg-play.mjs tests"
},
"repository": {
"type": "git",
"url": "git+https://github.com/crummy/pPEGjs.git"
},
"keywords": [
"ppeg",
"parser",
"expression",
"grammar"
],
"author": "Peter Cashin",
"license": "MIT",
"bugs": {
"url": "https://github.com/pcanz/pPEGjs/issues"
},
"homepage": "https://github.com/pcanz/pPEGjs#readme"
}

0 comments on commit 35947fe

Please sign in to comment.