Skip to content

Commit

Permalink
Update actions in CI (#10600)
Browse files Browse the repository at this point in the history
  • Loading branch information
mondeja committed Mar 9, 2024
1 parent 78b2f3f commit 6dca3fb
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 61 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/autoclose-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
15 changes: 5 additions & 10 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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]'
Expand Down
34 changes: 12 additions & 22 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -38,16 +33,11 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Use Node.js 20.x
uses: actions/setup-node@v3
with:
node-version: 20.x
- name: Cache dependencies
uses: actions/cache@v3
uses: actions/setup-node@v4
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
Expand All @@ -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:
Expand All @@ -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
Expand All @@ -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
Expand Down
41 changes: 13 additions & 28 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -30,16 +25,11 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Use Node.js 20.x
uses: actions/setup-node@v3
with:
node-version: 20.x
- name: Cache dependencies
uses: actions/cache@v3
uses: actions/setup-node@v4
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
Expand All @@ -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
Expand Down Expand Up @@ -88,16 +78,11 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Use Node.js 20.x
uses: actions/setup-node@v3
with:
node-version: 20.x
- name: Cache dependencies
uses: actions/cache@v3
uses: actions/setup-node@v4
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
Expand Down

0 comments on commit 6dca3fb

Please sign in to comment.