Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,14 @@ jobs:
registry-url: https://registry.npmjs.org/
cache: 'npm'
- run: npm ci
- name: Install ggshield
run: pipx install ggshield
- name: Update npm
run: npm install -g npm@latest
- name: Release
run: npm publish --provenance --access public
env:
GITGUARDIAN_API_KEY: ${{ secrets.GITGUARDIAN_API_KEY }}
publish-alpha:
runs-on: ubuntu-latest
if: ${{ endsWith(github.event.release.name, '-alpha') }}
Expand All @@ -41,8 +45,12 @@ jobs:
registry-url: https://registry.npmjs.org/
cache: 'npm'
- run: npm ci
- name: Install ggshield
run: pipx install ggshield
- name: Update npm
run: npm install -g npm@latest
- name: Release
# Without --tag alpha npm moves the latest tag to the prerelease
run: npm publish --tag alpha --provenance --access public
env:
GITGUARDIAN_API_KEY: ${{ secrets.GITGUARDIAN_API_KEY }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -145,3 +145,4 @@ test-reports/
test-profile-report.json

# End of https://www.toptal.com/developers/gitignore/api/node,web,vscode
.cache_ggshield
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
],
"sideEffects": false,
"scripts": {
"build": "NODE_OPTIONS='--max-old-space-size=16384' tsup",
"postpack": "ggshield secret scan archive ./*.tgz",
"build": "NODE_OPTIONS='--max-old-space-size=16384' tsup",
"test": "vitest --run",
"test:watch": "vitest",
"test:once": "vitest run",
Expand Down
Loading