Skip to content

Commit

Permalink
chore: Mettre à jour les dépendances.
Browse files Browse the repository at this point in the history
  • Loading branch information
regseb committed Feb 13, 2024
1 parent 40d2c1c commit 6a7956c
Show file tree
Hide file tree
Showing 18 changed files with 1,116 additions and 1,016 deletions.
2 changes: 1 addition & 1 deletion .github/CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ decisions when appropriate.

This Code of Conduct applies within all community spaces, and also applies when
an individual is officially representing the community in public spaces.
Examples of representing our community include using an official e-mail address,
Examples of representing our community include using an official email address,
posting via an official social media account, or acting as an appointed
representative at an online or offline event.

Expand Down
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ assignees: ""

### Environment

- Cronnor version<!-- e.g. 2.2.3 -->:
- Platform version<!-- e.g. Chrome 117.0.5938.92, Node.js v20.8.0 -->:
- Cronnor version<!-- e.g. 2.3.0 -->:
- Platform version<!-- e.g. Chrome 121.0.6167.160, Node.js v20.11.0 -->:

### Additional context

Expand Down
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ assignees: ""

### Environment

- Cronnor version<!-- e.g. 2.2.3 -->:
- Platform version<!-- e.g. Chrome 117.0.5938.92, Node.js v20.8.0 -->:
- Cronnor version<!-- e.g. 2.3.0 -->:
- Platform version<!-- e.g. Chrome 121.0.6167.160, Node.js v20.11.0 -->:

### Additional context

Expand Down
8 changes: 4 additions & 4 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
version: 2
updates:
- package-ecosystem: "npm"
- package-ecosystem: npm
directory: "/"
schedule:
interval: "weekly"
interval: weekly
allow:
- dependency-type: production

- package-ecosystem: "github-actions"
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: "weekly"
interval: weekly
49 changes: 31 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,25 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 20

- name: Checkout repository
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20

- name: Install dependencies
run: npm ci

- name: Lint files
run: npm run lint -- --formatter github

- name: Check types
run: npm run lint:types
if: always()
run: npm run lint:types

test:
runs-on: ${{ matrix.os }}
Expand All @@ -36,16 +36,16 @@ jobs:
os: [ubuntu-latest, macos-latest, windows-latest]
node-version: [20, latest]
steps:
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Checkout repository
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Install dependencies
run: npm ci

Expand All @@ -55,16 +55,16 @@ jobs:
coverage:
runs-on: ubuntu-latest
steps:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 20

- name: Checkout repository
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20

- name: Install dependencies
run: npm ci

Expand All @@ -86,9 +86,22 @@ jobs:
persist-credentials: false

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v3
with:
languages: javascript

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3

- name: Run Snyk to check for vulnerabilities
uses: snyk/actions/node@master
continue-on-error: true
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
args: --sarif-file-output=snyk.sarif

- name: Upload Snyk result to GitHub Code Scanning
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: snyk.sarif
59 changes: 51 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,28 +12,71 @@ jobs:
id-token: write
steps:
- name: Run Release Please
uses: google-github-actions/release-please-action@v3
uses: google-github-actions/release-please-action@v4
id: release
with:
release-type: node
config-file: .release-please/config.json
manifest-file: .release-please/manifest.json

# Si la PR (pull request) a été créée ou modifiée : formatter les fichiers
# modifiés par release-please, car ils ne respectent plus le formatage de
# Prettier (via Metalint).
# https://github.com/googleapis/release-please/issues/1802
- name: Checkout repository
if: ${{ steps.release.outputs.pr }}
uses: actions/checkout@v4
with:
ref: ${{ fromJson(steps.release.outputs.pr).headBranchName }}

- name: Configure Git user
if: ${{ steps.release.outputs.pr }}
run: |
git config user.email "github-actions[bot]@users.noreply.github.com"
git config user.name "github-actions[bot]"
- name: Setup Node.js
uses: actions/setup-node@v3
if: ${{ steps.release.outputs.pr }}
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: "https://registry.npmjs.org"
if: ${{ steps.release.outputs.release_created }}

- name: Install dependencies
if: ${{ steps.release.outputs.pr }}
run: npm ci

- name: Format files
if: ${{ steps.release.outputs.pr }}
run: >
npm run lint:fix --
.release-please/manifest.json
CHANGELOG.md
package.json
package-lock.json
- name: Commit and push
if: ${{ steps.release.outputs.pr }}
run: |
git commit --all --message 'chore: format files'
git push
# Si la release a été créée : publier le paquet dans npm.
- name: Checkout repository
if: ${{ steps.release.outputs.release_created }}
uses: actions/checkout@v4

- name: Setup Node.js
if: ${{ steps.release.outputs.release_created }}
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org

- name: Install dependencies
run: npm ci
if: ${{ steps.release.outputs.release_created }}
run: npm ci

- name: Publish in npm
if: ${{ steps.release.outputs.release_created }}
run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
if: ${{ steps.release.outputs.release_created }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Loading

0 comments on commit 6a7956c

Please sign in to comment.