Skip to content

Commit

Permalink
feat: Add qunit env
Browse files Browse the repository at this point in the history
  • Loading branch information
mauriciolauffer committed May 10, 2023
1 parent 1c324ac commit 5e2e127
Show file tree
Hide file tree
Showing 8 changed files with 86 additions and 51 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: NPM Package Publish

on:
release:
types: [created]

permissions: read-all

jobs:
publish:
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
registry-url: https://registry.npmjs.org
cache: npm
- run: npm publish --provenance
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_SECRET }}
21 changes: 6 additions & 15 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,16 @@ on:
push:
branches: [master]

permissions:
contents: write
pull-requests: write

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: GoogleCloudPlatform/release-please-action@v3
- uses: google-github-actions/release-please-action@v3
with:
token: ${{ secrets.GH_PAT }}
release-type: node
package-name: eslint-config-mlauffer-ui5
- uses: actions/checkout@v3
if: ${{ steps.release.outputs.release_created }}
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: 'https://registry.npmjs.org'
cache: npm
if: ${{ steps.release.outputs.release_created }}
- run: npm ci
if: ${{ steps.release.outputs.release_created }}
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
if: ${{ steps.release.outputs.release_created }}
2 changes: 1 addition & 1 deletion .github/workflows/scorecards-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
persist-credentials: false

- name: "Run analysis"
uses: ossf/scorecard-action@e38b1902ae4f44df626f11ba0734b14fb91f8f86 # v2.1.2
uses: ossf/scorecard-action@80e868c13c90f172d68d1f4501dee99e2479f7af # v2.1.3
with:
results_file: results.sarif
results_format: sarif
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
node-version: 20
cache: npm
- run: npm install -g eslint
- run: npm install -g eslint --ignore-scripts
- run: npm ci --ignore-scripts
- run: npm test
1 change: 1 addition & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ module.exports = {
browser: true,
es6: true,
jquery: true,
qunit: true,
worker: true,
amd: true,
serviceworker: true
Expand Down
73 changes: 41 additions & 32 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"sapui5"
],
"dependencies": {
"eslint-config-mlauffer-nodejs": "^1.4.0"
"eslint-config-mlauffer-nodejs": "^1.4.1"
},
"repository": {
"type": "git",
Expand Down
11 changes: 11 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"compilerOptions": {
"module": "CommonJS",
"target": "ESNext",
"alwaysStrict": true,
"noEmit": true,
"checkJs": true,
"allowJs": true,
"types": []
}
}

0 comments on commit 5e2e127

Please sign in to comment.