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
7 changes: 7 additions & 0 deletions .github/workflows/release.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 --access public --tag ${{ github.event.release.prerelease && 'beta' || 'latest' }}
env:
GITGUARDIAN_API_KEY: ${{ secrets.GITGUARDIAN_API_KEY }}

publish-github:
runs-on: ubuntu-latest
Expand All @@ -41,9 +45,12 @@ jobs:
registry-url: https://npm.pkg.github.com/
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
env:
GITGUARDIAN_API_KEY: ${{ secrets.GITGUARDIAN_API_KEY }}
NODE_AUTH_TOKEN: ${{ github.token }}
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,5 @@ test/docs/*.mjs
test/docs/sanity-report*
*.log
.nx/
delivery-sdk-persistence/
delivery-sdk-persistence/
.cache_ggshield
3 changes: 2 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ src
*.tgz
.talismanrc
tap-html.html
.github
.github
.cache_ggshield
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
"./package.json": "./package.json"
},
"scripts": {
"prepare": "npm run build",
"postpack": "ggshield secret scan archive ./*.tgz",
"prepare": "npm run build",
"test": "jest ./test/unit",
"test:unit": "jest ./test/unit",
"test:api": "ENABLE_HTTP_CAPTURE=true jest ./test/api",
Expand Down
Loading