Skip to content

Commit

Permalink
chore: upgrade dependencies and workflows to resolve security alerts (#…
Browse files Browse the repository at this point in the history
…35)

* Fix: various security improvements

* Fix: upgraded action workflow with latest dep and node

* 1.1.1
  • Loading branch information
imzedi authored Dec 2, 2024
1 parent abf4a60 commit e760fae
Showing 22 changed files with 4,161 additions and 41,977 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/autotag.yml
Original file line number Diff line number Diff line change
@@ -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.GH_AUTH_TOKEN }}'
fetch-depth: 0
- uses: butlerlogic/action-autotag@master
with:
GITHUB_TOKEN: "${{ secrets.GH_AUTH_TOKEN }}"
tag_prefix: "v"
- uses: actions/checkout@v4
with:
token: "${{ secrets.GH_AUTH_TOKEN }}"
fetch-depth: 0
- uses: butlerlogic/action-autotag@master
with:
GITHUB_TOKEN: "${{ secrets.GH_AUTH_TOKEN }}"
tag_prefix: "v"
10 changes: 5 additions & 5 deletions .github/workflows/npm-publish-pro.yml
Original file line number Diff line number Diff line change
@@ -3,16 +3,16 @@ name: Publish to NPM PRO
on:
push:
tags:
- '*'
- "*"

jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 10.16.3
node-version: 22.11.0
- name: Install NPM
run: npm ci --progress=false
- name: Set Gemfury Config
@@ -22,4 +22,4 @@ jobs:
- name: Download & Build Icons
run: npm i @iconscout/unicons@latest && npm run generate
- name: Publish to Gemfury
run: npm publish
run: npm publish
23 changes: 11 additions & 12 deletions .github/workflows/npm-publish-rc.yml
Original file line number Diff line number Diff line change
@@ -3,31 +3,30 @@ name: Publish to NPM RC
on:
push:
# Sequence of patterns matched against refs/heads
branches:
- 'release-*'
branches:
- "release-*"

jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- if: github.event_name == 'push'
uses: actions/checkout@v2
- if: github.event_name == 'pull_request'
uses: actions/checkout@v2
- if: github.event_name == 'push'
uses: actions/checkout@v4
- if: github.event_name == 'pull_request'
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- uses: actions/setup-node@v1
- uses: actions/setup-node@v4
with:
node-version: 10.16.3
node-version: 22.11.0
- name: Download & Build Icons
run: npm ci --progress=false && npm i @iconscout/unicons@latest && npm run generate
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.GH_AUTH_TOKEN }}
title: Updated Icons
- name: Publish to NPM
uses: primer/publish@v2.0.0
run: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc && npm publish
env:
GITHUB_TOKEN: ${{ secrets.GH_AUTH_TOKEN }}
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
NPM_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
@@ -3,19 +3,19 @@ name: Publish to NPM
on:
push:
tags:
- '*'
- "*"

jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 10.16.3
node-version: 22.11.0
- name: Download & Build Icons
run: npm ci --progress=false && npm i @iconscout/unicons@latest && npm run generate
- name: Publish to NPM
run: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc && npm publish
env:
NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v22.11.0
68 changes: 0 additions & 68 deletions example/README.md

This file was deleted.

Loading

0 comments on commit e760fae

Please sign in to comment.