diff --git a/.github/workflows/autoclose-issues.yml b/.github/workflows/autoclose-issues.yml index ae739a8e..3d8b20fc 100644 --- a/.github/workflows/autoclose-issues.yml +++ b/.github/workflows/autoclose-issues.yml @@ -35,7 +35,7 @@ jobs: if: | steps.match-java.outputs.match == 'true' && contains(steps.get-labels.outputs.labels, 'new icon') - uses: actions/github-script@v6 + uses: actions/github-script@v7 with: script: | github.rest.issues.createComment({ diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index 5cc4a40c..61d8acd2 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -42,16 +42,11 @@ jobs: # Ensure we are checked out on the develop branch ref: develop - name: Use Node.js 20.x - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: - node-version: 20.x - - name: Cache dependencies - uses: actions/cache@v3 - with: - path: ~/.npm - key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }} - restore-keys: | - ${{ runner.os }}-node- + node-version: 20 + cache: npm + cache-dependency-path: '**/package.json' - name: Bump version run: | npm version --no-commit-hooks --no-git-tag-version \ @@ -67,7 +62,7 @@ jobs: - name: Update SDK Typescript definitions run: node ./scripts/release/update-sdk-ts-defs.js - name: Commit version bump - uses: stefanzweifel/git-auto-commit-action@v5.0.0 + uses: stefanzweifel/git-auto-commit-action@v5 with: commit_message: version bump commit_user_name: 'github-actions[bot]' diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index bdd3c9c2..627c9e57 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -12,16 +12,11 @@ jobs: - name: Checkout uses: actions/checkout@v4 - name: Use Node.js 20.x - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: - node-version: 20.x - - name: Cache dependencies - uses: actions/cache@v3 - with: - path: ~/.npm - key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }} - restore-keys: | - ${{ runner.os }}-node- + node-version: 20 + cache: npm + cache-dependency-path: '**/package.json' - name: Install dependencies run: npm i - name: Run linters @@ -38,16 +33,11 @@ jobs: - name: Checkout uses: actions/checkout@v4 - name: Use Node.js 20.x - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: - node-version: 20.x - - name: Cache dependencies - uses: actions/cache@v3 - with: - path: ~/.npm - key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }} - restore-keys: | - ${{ runner.os }}-node- + node-version: 20 + cache: npm + cache-dependency-path: '**/package.json' - id: get-version uses: ./.github/actions/get-version - name: Install dependencies @@ -59,7 +49,7 @@ jobs: - name: Build NodeJS package run: npm run build - name: Deploy to NPM - uses: JS-DevTools/npm-publish@v2 + uses: JS-DevTools/npm-publish@v3 with: token: ${{ secrets.NPM_TOKEN }} github: @@ -71,7 +61,7 @@ jobs: uses: actions/checkout@v4 - name: Get commit message (for release title and body) id: commit - uses: kceb/git-message-action@v2 + uses: kceb/git-message-action@v3 - id: get-version uses: ./.github/actions/get-version - name: Reformat to regular markdown @@ -92,12 +82,12 @@ jobs: git tag -a "${tag}" -m "${{ steps.commit.outputs.git-message }}" git push origin "${tag}" - name: Create release - uses: actions/create-release@v1 + uses: softprops/action-gh-release@v2 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: tag_name: ${{ steps.get-version.outputs.version }} - release_name: ${{ steps.commit.outputs.title }} + name: ${{ steps.commit.outputs.title }} body: ${{ steps.commit.outputs.body }} font: name: Trigger simple-icons-font release diff --git a/.github/workflows/verify.yml b/.github/workflows/verify.yml index 0e191ff6..b413d92b 100644 --- a/.github/workflows/verify.yml +++ b/.github/workflows/verify.yml @@ -9,16 +9,11 @@ jobs: - name: Checkout uses: actions/checkout@v4 - name: Use Node.js 20.x - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: - node-version: 20.x - - name: Cache dependencies - uses: actions/cache@v3 - with: - path: ~/.npm - key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }} - restore-keys: | - ${{ runner.os }}-node- + node-version: 20 + cache: npm + cache-dependency-path: '**/package.json' - name: Install dependencies run: npm i - name: Build NodeJS package @@ -30,16 +25,11 @@ jobs: - name: Checkout uses: actions/checkout@v4 - name: Use Node.js 20.x - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: - node-version: 20.x - - name: Cache dependencies - uses: actions/cache@v3 - with: - path: ~/.npm - key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }} - restore-keys: | - ${{ runner.os }}-node- + node-version: 20 + cache: npm + cache-dependency-path: '**/package.json' - name: Install dependencies run: npm i - name: Run linter @@ -48,7 +38,7 @@ jobs: # Authorise GitHub API requests for editorconfig-checker GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Detect changed documentation files - uses: dorny/paths-filter@v2 + uses: dorny/paths-filter@v3 id: changes with: list-files: shell @@ -88,16 +78,11 @@ jobs: - name: Checkout uses: actions/checkout@v4 - name: Use Node.js 20.x - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: - node-version: 20.x - - name: Cache dependencies - uses: actions/cache@v3 - with: - path: ~/.npm - key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }} - restore-keys: | - ${{ runner.os }}-node- + node-version: 20 + cache: npm + cache-dependency-path: '**/package.json' - name: Install dependencies run: npm i - name: Run tests