-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated package.json, webpack.yml, and husky pre-commit
- Loading branch information
1 parent
37b02cf
commit 038fe1f
Showing
5 changed files
with
178 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -140,58 +140,58 @@ jobs: | |
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
|
||
# publish-gpr: | ||
# needs: [check-codeql, build] | ||
# runs-on: ubuntu-24.04 | ||
publish-gpr: | ||
needs: [check-codeql, build] | ||
runs-on: ubuntu-24.04 | ||
# Complete workflow even if this job fails | ||
# continue-on-error: true | ||
# permissions: | ||
# contents: read | ||
# packages: write | ||
# steps: | ||
# - name: Set up .npmrc file for GPR | ||
# run: | | ||
# echo "@neteng-pro:registry=https://npm.pkg.github.com/" > ~/.npmrc | ||
# echo "//npm.pkg.github.com/:_authToken=${{ secrets.GH_PAT }}" >> ~/.npmrc | ||
|
||
# - name: Login to GitHub Package Registry | ||
# run: npm login --registry=https://npm.pkg.github.com/ --scope=@neteng-pro --always-auth --username "sundevil311" --authToken ${{ secrets.GH_PAT }} | ||
|
||
# - name: Checkout repository | ||
# uses: actions/[email protected] | ||
|
||
# - name: Set up Node.js | ||
# uses: actions/[email protected] | ||
# with: | ||
# node-version: 22.x | ||
# registry-url: https://npm.pkg.github.com/ | ||
|
||
# - name: Cache Node.js modules | ||
# uses: actions/[email protected] | ||
# with: | ||
# path: ~/.npm | ||
# key: ${{ runner.os }}-node-22.x-publish-${{ hashFiles('package-lock.json') }} | ||
# restore-keys: | | ||
# ${{ runner.os }}-node-22.x-publish- | ||
# ${{ runner.os }}-node-22.x- | ||
# ${{ runner.os }}-node- | ||
|
||
# - name: Install dependencies | ||
# run: npm ci | ||
|
||
# - name: Set up Git user | ||
# run: | | ||
# git config --global user.email "[email protected]" | ||
# git config --global user.name "SunDevil311" | ||
|
||
# - name: Ensure dist directory exists | ||
# run: mkdir -p dist | ||
|
||
# - name: Copy package.json to dist directory | ||
# run: cp package.json dist/ | ||
|
||
# - name: Publish package | ||
# working-directory: ./dist | ||
# run: npm publish | ||
# env: | ||
# NODE_AUTH_TOKEN: ${{ secrets.GH_PAT }} | ||
continue-on-error: true | ||
permissions: | ||
contents: read | ||
packages: write | ||
steps: | ||
- name: Set up .npmrc file for GPR | ||
run: | | ||
echo "@neteng-pro:registry=https://npm.pkg.github.com/" > ~/.npmrc | ||
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GH_PAT }}" >> ~/.npmrc | ||
- name: Login to GitHub Package Registry | ||
run: npm login --registry=https://npm.pkg.github.com/ --scope=@neteng-pro --always-auth --username "sundevil311" --authToken ${{ secrets.GH_PAT }} | ||
|
||
- name: Checkout repository | ||
uses: actions/[email protected] | ||
|
||
- name: Set up Node.js | ||
uses: actions/[email protected] | ||
with: | ||
node-version: 22.x | ||
registry-url: https://npm.pkg.github.com/ | ||
|
||
- name: Cache Node.js modules | ||
uses: actions/[email protected] | ||
with: | ||
path: ~/.npm | ||
key: ${{ runner.os }}-node-22.x-publish-${{ hashFiles('package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-node-22.x-publish- | ||
${{ runner.os }}-node-22.x- | ||
${{ runner.os }}-node- | ||
- name: Install dependencies | ||
run: npm ci | ||
|
||
- name: Set up Git user | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "SunDevil311" | ||
- name: Ensure dist directory exists | ||
run: mkdir -p dist | ||
|
||
- name: Copy package.json to dist directory | ||
run: cp package.json dist/ | ||
|
||
- name: Publish package | ||
working-directory: ./dist | ||
run: npm publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.GH_PAT }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters