Skip to content

Commit

Permalink
chore: upgrade webpack to v5 and fixed workflow (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
imzedi authored Dec 4, 2024
1 parent 7fcba8a commit a633c9b
Show file tree
Hide file tree
Showing 8 changed files with 3,143 additions and 4,628 deletions.
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.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@1.1.2
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
Expand Up @@ -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
Expand All @@ -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
Expand Up @@ -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: npm publish
env:
GITHUB_TOKEN: ${{ secrets.GH_AUTH_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 @@ -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
Loading

0 comments on commit a633c9b

Please sign in to comment.