Skip to content

Commit

Permalink
restrict files
Browse files Browse the repository at this point in the history
  • Loading branch information
splitice committed Oct 18, 2024
1 parent 78da585 commit 8491419
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,9 @@ jobs:
- name: Test (Production)
run: npm test
- run: |
ls -las src
VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,' | sed -e 's/^v//')
jq '.version="'"$VERSION"'" | .main="./src/RuleParser.production.js"' package.json > /tmp/a
jq '.version="'"$VERSION"'" | .main="src/RuleParser.production.js"' package.json > /tmp/a
mv /tmp/a package.json
- run: |
Expand Down
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,9 @@
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org/"
}
},
"files": [
"src/*",
"index.js"
]
}

0 comments on commit 8491419

Please sign in to comment.