1
0
mirror of https://github.com/Minionguyjpro/Inno-Setup-Action synced 2026-02-18 09:31:19 +01:00

Optimize for use with Dependabot

This commit is contained in:
Minionguyjpro
2024-01-02 16:54:00 +01:00
parent 94bc84251f
commit ca8088efe4
5 changed files with 6277 additions and 18 deletions

6
.github/auto-merge.yml vendored Normal file
View File

@@ -0,0 +1,6 @@
minApprovals:
NONE: 0
requiredLabels:
- dependencies
updateBranch: true
mergeMethod: rebase

View File

@@ -1,9 +1,10 @@
version: 2 version: 2
updates: updates:
# Enable version updates for npm - package-ecosystem: npm
- package-ecosystem: 'npm' directory: "/"
# Look for `package.json` and `lock` files in the `root` directory
directory: '/'
# Check the npm registry for updates every day (weekdays)
schedule: schedule:
interval: 'daily' interval: daily
commit-message:
prefix: fix
prefix-development: chore
include: scope

View File

@@ -5,20 +5,31 @@ on:
pull_request: pull_request:
jobs: jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
# Make sure the release step uses its own credentials.
persist-credentials: false
- run: |
npm ci
npm run all
- name: Run semantic-release
# This process will run `ncc`, commit files, push a Git commit, and release to GitHub and npmjs.
run: |
npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.PAT_TO_PUSH }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
test: test:
runs-on: windows-latest runs-on: windows-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 16
- name: Read package-lock.json
run: |
npm ci
cat package-lock.json
- name: Test code with ESLint - name: Test code with ESLint
run: npx eslint "./dist/**" run: npx eslint "./dist/**"

6216
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -5,6 +5,7 @@
"main": "dist/index.js", "main": "dist/index.js",
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1" "test": "echo \"Error: no test specified\" && exit 1"
"package": "ncc build --source-map"
}, },
"keywords": [], "keywords": [],
"author": "", "author": "",
@@ -15,6 +16,32 @@
"node-cmd": "^5.0.0" "node-cmd": "^5.0.0"
}, },
"devDependencies": { "devDependencies": {
"eslint": "^8.56.0" "@semantic-release/exec": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"eslint": "^8.56.0",
"semantic-release": "^22.0.12"
},
"release": {
"branches": "main",
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/npm",
"@semantic-release/github",
["@semantic-release/exec", {
"prepare": "npm run package"
}],
[
"@semantic-release/git",
{
"assets": [
"dist",
"package.json",
"package-lock.json"
],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
]
]
} }
} }