Skip to content

Commit

Permalink
Update github's actions
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGoncharov committed Sep 15, 2024
1 parent d20de9d commit 8fe0f20
Show file tree
Hide file tree
Showing 8 changed files with 42 additions and 33 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,18 @@ jobs:
contents: read # for actions/checkout
steps:
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0 # fetch all history
show-progress: false
fetch-depth: 0 # fetch all reachable commits
filter: tree:0 # while fetching trees and blobs on-demand

- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
cache: npm
node-version-file: '.node-version'
node-version-file: 'package.json'

- name: Install Dependencies
run: npm ci --ignore-scripts
Expand All @@ -29,7 +31,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Upload npm folder
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: changelog
path: ./changelog.txt
40 changes: 20 additions & 20 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,23 @@ jobs:
contents: read # for actions/checkout
steps:
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
cache: npm
node-version-file: '.node-version'
node-version-file: 'package.json'

- name: Install Dependencies
run: npm ci --ignore-scripts

- name: Run tests
run: npm run testonly

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
Expand All @@ -37,15 +37,15 @@ jobs:
contents: read # for actions/checkout
steps:
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
cache: npm
node-version-file: '.node-version'
node-version-file: 'package.json'

- name: Install Dependencies
run: npm ci --ignore-scripts
Expand Down Expand Up @@ -74,7 +74,7 @@ jobs:
contents: read # for actions/checkout
steps:
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
persist-credentials: false

Expand All @@ -100,15 +100,15 @@ jobs:
contents: read # for actions/checkout
steps:
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
cache: npm
node-version-file: '.node-version'
node-version-file: 'package.json'

- name: Install Dependencies
run: npm ci --ignore-scripts
Expand All @@ -130,7 +130,7 @@ jobs:
security-events: write # for codeql-action
steps:
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
persist-credentials: false

Expand All @@ -149,15 +149,15 @@ jobs:
contents: read # for actions/checkout
steps:
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
cache: npm
node-version-file: '.node-version'
node-version-file: 'package.json'

- name: Install Dependencies
run: npm ci --ignore-scripts
Expand All @@ -166,7 +166,7 @@ jobs:
run: npm run build:demo

- name: Upload demo-dist folder
uses: actions/upload-pages-artifact@v1
uses: actions/upload-pages-artifact@v3
with:
name: demoDist
path: ./demo-dist
Expand All @@ -178,15 +178,15 @@ jobs:
contents: read # for actions/checkout
steps:
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
cache: npm
node-version-file: '.node-version'
node-version-file: 'package.json'

- name: Install Dependencies
run: npm ci --ignore-scripts
Expand All @@ -195,7 +195,7 @@ jobs:
run: npm run build:release

- name: Upload npm folder
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: npmDist
path: |
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,19 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
cache: npm
node-version-file: '.node-version'
node-version-file: 'package.json'
# 'registry-url' is required for 'npm publish'
registry-url: 'https://registry.npmjs.org'

- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: npmDist
path: npmDist
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@ jobs:
contents: read # for actions/checkout
steps:
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Dependency review
uses: actions/dependency-review-action@v2
uses: actions/dependency-review-action@v4
with:
comment-summary-in-pr: always
2 changes: 1 addition & 1 deletion .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ jobs:
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
uses: actions/deploy-pages@v4
with:
artifact_name: demoDist
1 change: 0 additions & 1 deletion .node-version

This file was deleted.

3 changes: 3 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
"bugs": {
"url": "https://github.com/graphql-kit/graphql-voyager/issues"
},
"engines": {
"node": ">=20.0.0"
},
"main": "dist/voyager.lib.js",
"types": "typings/index.d.ts",
"scripts": {
Expand Down

0 comments on commit 8fe0f20

Please sign in to comment.