Skip to content

Commit

Permalink
🚀 fix github actions npm ci
Browse files Browse the repository at this point in the history
  • Loading branch information
scottnath committed Apr 11, 2024
1 parent 0374bd1 commit dae4424
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 7 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/astro.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,12 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "lts/*"
node-version: '20'
- name: Latest npm
run: npm install -g npm@latest

- name: Cache dependencies
uses: actions/cache@v3
Expand Down
22 changes: 17 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,26 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "lts/*"
node-version: '20'
- name: Latest npm
run: npm install -g npm@latest

- name: Cache dependencies
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies
run: npm clean-install
- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
run: npm audit signatures
run: npm ci
# - name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
# run: npm audit signatures
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit dae4424

Please sign in to comment.