mirror of
https://github.com/simple-icons/simple-icons.git
synced 2024-12-16 01:10:30 +02:00
Update actions in CI (#10600)
This commit is contained in:
parent
78b2f3fb7c
commit
6dca3fb56b
2
.github/workflows/autoclose-issues.yml
vendored
2
.github/workflows/autoclose-issues.yml
vendored
@ -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({
|
||||
|
15
.github/workflows/create-release.yml
vendored
15
.github/workflows/create-release.yml
vendored
@ -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]'
|
||||
|
34
.github/workflows/publish.yml
vendored
34
.github/workflows/publish.yml
vendored
@ -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
|
||||
|
41
.github/workflows/verify.yml
vendored
41
.github/workflows/verify.yml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user