Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
SunDevil311 committed Jan 26, 2025
1 parent d858a0f commit f59e1e3
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 17 deletions.
21 changes: 13 additions & 8 deletions .github/workflows/webpack-gh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
check-codeql:
name: Check CodeQL Analysis
runs-on: ubuntu-22.04
continue-on-error: true
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand Down Expand Up @@ -51,18 +52,20 @@ jobs:
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ matrix.node-version }}
key: ${{ runner.os }}-node-${{ matrix.node-version }}-build-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ matrix.node-version }}
${{ runner.os }}-node-${{ matrix.node-version }}-build-
${{ runner.os }}-node-${{ matrix.node-version }}-
${{ runner.os }}-node-
- name: Install dependencies
run: npm ci
- name: Run tests using Mocha framework
run: npm test
continue-on-error: true
# Lint and format code in editor
#- name: Lint code and check formatting
# run: npm run lint
# continue-on-error: true
# Uncomment the following lines if you want to lint and format your code
# - name: Lint code and check formatting
# run: npm run lint
# continue-on-error: true
- name: Build project
run: npm run build
- name: Copy package.json to dist directory
Expand All @@ -86,9 +89,11 @@ jobs:
uses: actions/cache@v3
with:
path: ~/.npm
key: 20.x
key: ${{ runner.os }}-node-20.x-publish-${{ hashFiles('package-lock.json') }}
restore-keys: |
20.x
${{ runner.os }}-node-20.x-publish-
${{ runner.os }}-node-20.x-
${{ runner.os }}-node-
- name: Install dependencies
run: npm ci
- name: Set up Git user
Expand Down
23 changes: 14 additions & 9 deletions .github/workflows/webpack-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
check-codeql:
name: Check CodeQL Analysis
runs-on: ubuntu-22.04
continue-on-error: true
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand Down Expand Up @@ -53,18 +54,20 @@ jobs:
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ matrix.node-version }}
key: ${{ runner.os }}-node-${{ matrix.node-version }}-build-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ matrix.node-version }}
${{ runner.os }}-node-${{ matrix.node-version }}-build-
${{ runner.os }}-node-${{ matrix.node-version }}-
${{ runner.os }}-node-
- name: Install dependencies
run: npm ci
- name: Run tests using Mocha framework
run: npm test
continue-on-error: true
# Lint and format code in editor
#- name: Lint code and check formatting
# run: npm run lint
# continue-on-error: true
# Uncomment the following lines if you want to lint and format your code
# - name: Lint code and check formatting
# run: npm run lint
# continue-on-error: true
- name: Build project
run: npm run build
- name: Copy package.json to dist directory
Expand All @@ -88,9 +91,11 @@ jobs:
uses: actions/cache@v3
with:
path: ~/.npm
key: 20.x
key: ${{ runner.os }}-node-20.x-publish-${{ hashFiles('package-lock.json') }}
restore-keys: |
20.x
${{ runner.os }}-node-20.x-publish-
${{ runner.os }}-node-20.x-
${{ runner.os }}-node-
- name: Install dependencies
run: npm ci
- name: Set up Git user
Expand All @@ -103,6 +108,6 @@ jobs:
run: cp package.json dist/
- name: Publish package
working-directory: ./dist
run: npm publish --access public
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit f59e1e3

Please sign in to comment.