Skip to content

Commit

Permalink
chore: upgraded Node, Webpack, Actions and security flags fixed (#224)
Browse files Browse the repository at this point in the history
* Fix: upgraded node, webpack, actions and security flags fixed

* Fix: bump version to minor

* [create-pull-request] automated change (#225)

Co-authored-by: imzedi <[email protected]>

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
imzedi and github-actions[bot] authored Dec 6, 2024
1 parent 1faa2f3 commit ebdd92c
Show file tree
Hide file tree
Showing 356 changed files with 5,428 additions and 5,878 deletions.
3 changes: 1 addition & 2 deletions .github/actions/update-dep-version/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine
FROM node:22.11.0-alpine

RUN apk update && \
apk upgrade && \
Expand All @@ -8,7 +8,6 @@ RUN apk update && \
make && \
mv ./bin/gh /usr/local/bin/

RUN npm i -g [email protected]

ADD entrypoint.sh /entrypoint.sh

Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/autopr-dep-frameworks.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
name: Create Pull requests on dependent components for new tag or release

# Controls when the action will run.
# Controls when the action will run.
on:
push:
tags:
- '*'
release:
types: [published]
push:
tags:
- '*'
release:
types: [published]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
# React Line Style
- name: Create Pull Request on https://github.com/Iconscout/react-unicons
uses: ./.github/actions/update-dep-version
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/autotag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@ name: Create Tag on package.json update

on:
push:
branches:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
token: '${{ secrets.PERSONAL_ACCESS_TOKEN }}'
fetch-depth: 0
- uses: butlerlogic/action-autotag@master
with:
GITHUB_TOKEN: "${{ secrets.PERSONAL_ACCESS_TOKEN }}"
tag_prefix: "v"
- uses: actions/checkout@v4
with:
token: '${{ secrets.PERSONAL_ACCESS_TOKEN }}'
fetch-depth: 0
- uses: butlerlogic/action-autotag@1.2.2
with:
GITHUB_TOKEN: '${{ secrets.PERSONAL_ACCESS_TOKEN }}'
tag_prefix: 'v'
6 changes: 3 additions & 3 deletions .github/workflows/npm-publish-pro.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:
- name: Extract Version
id: extract_version
run: echo ::set-output name=VERSION::$(echo $GITHUB_REF | cut -d / -f 3)
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 14.18.1
node-version: 22.11.0
- name: Download & Build Icons
run: npm ci --progress=false && npm run update-json && npm run line:build && npm run solid:build && npm run thinline:build && npm run monochrome:build
env:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/npm-publish-rc-pro.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ jobs:
- name: Extract Version
id: extract_version
run: echo ::set-output name=VERSION::$(echo $GITHUB_REF | cut -d / -f 3)
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 14.18.1
node-version: 22.11.0
- name: Download & Build Icons
run: npm ci --progress=false && npm run update-json && npm run line:build && npm run solid:build && npm run thinline:build && npm run monochrome:build
env:
Expand Down
15 changes: 7 additions & 8 deletions .github/workflows/npm-publish-rc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ jobs:
id: extract_version
run: echo ::set-output name=VERSION::$(echo $GITHUB_REF | cut -d / -f 3)
- if: github.event_name == 'push'
uses: actions/checkout@v2
uses: actions/checkout@v4
- if: github.event_name == 'pull_request'
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- uses: actions/setup-node@v1
- uses: actions/setup-node@v4
with:
node-version: 14.18.1
node-version: 22.11.0
- name: Download & Build Icons
run: npm ci --progress=false && npm run line:build && npm run solid:build && npm run thinline:build && npm run monochrome:build
env:
Expand All @@ -32,7 +32,7 @@ jobs:
API_DOWNLOAD_MONOCHROME: ${{ secrets.API_DOWNLOAD_MONOCHROME }}
RELEASE_DIR: 'release'
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.GITHUB_TOKEN }}
title: Updated Icons
Expand All @@ -46,7 +46,6 @@ jobs:
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
DEST_DIR: 'release/${{ steps.extract_version.outputs.VERSION }}'
- name: Publish to NPM
uses: primer/publish@v2.0.0
run: npm publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
10 changes: 5 additions & 5 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:
- name: Extract Version
id: extract_version
run: echo ::set-output name=VERSION::$(echo $GITHUB_REF | cut -d / -f 3)
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 14.18.1
node-version: 22.11.0
- name: Download & Build Icons
run: npm ci --progress=false && npm run line:build && npm run solid:build && npm run thinline:build && npm run monochrome:build
env:
Expand All @@ -33,9 +33,9 @@ jobs:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
DEST_DIR: 'release/${{ steps.extract_version.outputs.VERSION }}'
- uses: actions/setup-node@v1
- uses: actions/setup-node@v4
with:
node-version: 14.18.1
node-version: 22.11.0
- name: Publish to NPM
run: printf "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc && npm publish --access=public
env:
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/update-icons.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- if: github.event_name == 'push'
uses: actions/checkout@v2
uses: actions/checkout@v4
- if: github.event_name == 'pull_request'
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- uses: actions/setup-node@v1
- uses: actions/setup-node@v4
with:
node-version: 14.18.1
node-version: 22.11.0
- name: Download Line Icons
run: npm ci --progress=false && npm run line:download
env:
Expand All @@ -38,7 +38,7 @@ jobs:
env:
API_DOWNLOAD_MONOCHROME: ${{ secrets.API_DOWNLOAD_MONOCHROME }}
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.GITHUB_TOKEN }}
title: Updated Icons
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
22.11.0
2 changes: 1 addition & 1 deletion json/line.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion json/monochrome.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion json/solid.json

Large diffs are not rendered by default.

Loading

0 comments on commit ebdd92c

Please sign in to comment.