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: 3 additions & 4 deletions .github/actions/npm-publish/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ runs:
uses: actions/setup-node@v4
with:
node-version: ${{ inputs.node-version }}
cache: 'npm'
registry-url: 'https://registry.npmjs.org'
package-manager-cache: false

- name: Update npm
shell: bash
Expand All @@ -31,7 +30,7 @@ runs:
- name: Install dependencies
if: inputs.require-build == 'true'
shell: bash
run: npm ci --include=dev
run: npm install --include=dev

- name: Build package
if: inputs.require-build == 'true'
Expand All @@ -49,6 +48,6 @@ runs:
else
TAG="latest"
fi
npm publish --tag $TAG
npm publish --provenance --registry https://registry.npmjs.org --tag $TAG
env:
VERSION: ${{ inputs.version }}
8 changes: 8 additions & 0 deletions .github/workflows/snyk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@ jobs:
with:
ref: ${{ github.event.pull_request.head.sha || github.ref }}

- name: Setup Node
uses: actions/setup-node@v6
with:
node-version: 22

- name: Install dependencies
run: npm install

- uses: snyk/actions/node@9adf32b1121593767fc3c057af55b55db032dc04 # pin@1.0.0
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
3 changes: 1 addition & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,9 @@ jobs:
uses: actions/setup-node@v6
with:
node-version: 22
cache: 'npm'

- name: Install dependencies
run: npm ci
run: npm install

- name: Build package
run: npm run build
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ local.log
build/
.puppeteer-cache/
.npm-home/
.chromium/
.chromium/
package-lock.json
Loading
Loading