Skip to content

Commit b69c29a

Browse files
authored
Merge pull request #15 from alisaitteke/develop
Develop
2 parents 8f71b1a + aa7b6fa commit b69c29a

File tree

5 files changed

+4119
-60
lines changed

5 files changed

+4119
-60
lines changed
Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,9 @@
1-
# For most projects, this workflow file will not need changing; you simply need
2-
# to commit it to your repository.
3-
#
4-
# You may wish to alter this file to override the set of languages analyzed,
5-
# or to provide custom queries or build logic.
6-
#
7-
# ******** NOTE ********
8-
# We have attempted to detect the languages in your repository. Please check
9-
# the `language` matrix defined below to confirm you have the correct set of
10-
# supported CodeQL languages.
11-
#
121
name: "CodeQL"
13-
142
on:
153
push:
164
branches: [ develop ]
175
pull_request:
18-
# The branches below must be a subset of the branches above
196
branches: [ develop ]
20-
schedule:
21-
- cron: '16 0 * * 2'
22-
237
jobs:
248
analyze:
259
name: Analyze
@@ -28,43 +12,18 @@ jobs:
2812
actions: read
2913
contents: read
3014
security-events: write
31-
3215
strategy:
3316
fail-fast: false
3417
matrix:
3518
language: [ 'javascript' ]
36-
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
37-
# Learn more about CodeQL language support at https://git.io/codeql-language-support
38-
3919
steps:
4020
- name: Checkout repository
4121
uses: actions/checkout@v3
42-
43-
# Initializes the CodeQL tools for scanning.
4422
- name: Initialize CodeQL
4523
uses: github/codeql-action/init@v2
4624
with:
4725
languages: ${{ matrix.language }}
48-
# If you wish to specify custom queries, you can do so here or in a config file.
49-
# By default, queries listed here will override any specified in a config file.
50-
# Prefix the list here with "+" to use these queries and those in the config file.
51-
# queries: ./path/to/local/query, your-org/your-repo/queries@main
52-
53-
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
54-
# If this step fails, then you should remove it and run the build manually (see below)
5526
- name: Autobuild
5627
uses: github/codeql-action/autobuild@v2
57-
58-
# ℹ️ Command-line programs to run using the OS shell.
59-
# 📚 https://git.io/JvXDl
60-
61-
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
62-
# and modify them (or add more) to build your code if your project
63-
# uses a compiled language
64-
65-
#- run: |
66-
# make bootstrap
67-
# make release
68-
6928
- name: Perform CodeQL Analysis
7029
uses: github/codeql-action/analyze@v2
Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
1-
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
2-
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
3-
4-
name: Node.js Package
5-
1+
name: Node.js Package for NPM
62
on:
3+
workflow_dispatch:
74
release:
85
types: [created]
96
push:
107
branches: [ master ]
118
pull_request:
129
branches: [ master ]
13-
1410
jobs:
1511
build:
1612
runs-on: ubuntu-latest
@@ -19,10 +15,9 @@ jobs:
1915
- uses: actions/setup-node@v3
2016
with:
2117
node-version: 16
22-
- run: npm ci
23-
- run: npm test
24-
25-
publish-gpr:
18+
- run: yarn install
19+
- run: yarn build
20+
publish-npm:
2621
needs: build
2722
runs-on: ubuntu-latest
2823
permissions:
@@ -33,8 +28,7 @@ jobs:
3328
- uses: actions/setup-node@v3
3429
with:
3530
node-version: 16
36-
registry-url: https://npm.pkg.github.com/
37-
- run: npm ci
38-
- run: npm publish
31+
- run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
32+
- run: yarn publish --access public
3933
env:
40-
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
34+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

.github/workflows/webpack.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
name: NodeJS with Webpack
2-
32
on:
43
push:
54
branches: [ develop ]
65
pull_request:
76
branches: [ develop ]
8-
97
jobs:
108
build:
119
runs-on: ubuntu-latest

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,8 @@ testem.log
3535
# System Files
3636
.DS_Store
3737
Thumbs.db
38-
/package-lock.json
3938
.history
40-
package-lock.json
4139
*.iml
42-
yarn.lock
4340
actions-runner
4441
build/*
4542
dist/*

0 commit comments

Comments
 (0)