Skip to content

Commit

Permalink
🔧 chore(codeql-analysis.yml): remove unnecessary comments and unused …
Browse files Browse the repository at this point in the history
…workflow triggers for CodeQL analysis

🔧 chore(npm-publish-github-packages.yml): remove unnecessary comments and unused workflow triggers for npm package publishing
🔧 chore(webpack.yml): remove unnecessary comments and unused workflow triggers for Webpack build
  • Loading branch information
alisaitteke committed Dec 21, 2023
1 parent 691ec53 commit 15ea81c
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 50 deletions.
41 changes: 0 additions & 41 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,9 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"

on:
push:
branches: [ develop ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ develop ]
schedule:
- cron: '16 0 * * 2'

jobs:
analyze:
name: Analyze
Expand All @@ -28,43 +12,18 @@ jobs:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'javascript' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
# Learn more about CodeQL language support at https://git.io/codeql-language-support

steps:
- name: Checkout repository
uses: actions/checkout@v3

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language

#- run: |
# make bootstrap
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
8 changes: 1 addition & 7 deletions .github/workflows/npm-publish-github-packages.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages

name: Node.js Package

on:
workflow_dispatch:
release:
Expand All @@ -11,7 +7,6 @@ on:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -22,7 +17,6 @@ jobs:
node-version: 16
- run: npm ci
- run: npm test

publish-gpr:
needs: build
runs-on: ubuntu-latest
Expand All @@ -38,4 +32,4 @@ jobs:
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
2 changes: 0 additions & 2 deletions .github/workflows/webpack.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
name: NodeJS with Webpack

on:
push:
branches: [ develop ]
pull_request:
branches: [ develop ]

jobs:
build:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 15ea81c

Please sign in to comment.