mirror of
https://github.com/simple-icons/simple-icons.git
synced 2024-11-16 00:59:07 +02:00
Drop package-lock.json
(#6179)
* Drop `package-lock.json` * Drop lockfile related code * Drop lockfile maintenance configurations
This commit is contained in:
parent
20f2a1ef4e
commit
8283daf05a
1
.gitattributes
vendored
1
.gitattributes
vendored
@ -4,7 +4,6 @@
|
|||||||
*.svg text
|
*.svg text
|
||||||
|
|
||||||
# Don't diff machine generated files
|
# Don't diff machine generated files
|
||||||
package-lock.json -diff
|
|
||||||
slugs.md -diff
|
slugs.md -diff
|
||||||
|
|
||||||
# Don't export/archive these files
|
# Don't export/archive these files
|
||||||
|
13
.github/renovate.json5
vendored
13
.github/renovate.json5
vendored
@ -6,19 +6,6 @@
|
|||||||
"group:all",
|
"group:all",
|
||||||
],
|
],
|
||||||
|
|
||||||
lockFileMaintenance: {
|
|
||||||
extends: [
|
|
||||||
// Make sure we get a single PR combining all updates
|
|
||||||
"group:all",
|
|
||||||
],
|
|
||||||
|
|
||||||
// Explicitly enable lockfile maintenance
|
|
||||||
enabled: true,
|
|
||||||
|
|
||||||
// This schedule should be the same as the general schedule!
|
|
||||||
schedule: "on the 2nd and 4th day instance on sunday after 11pm",
|
|
||||||
},
|
|
||||||
|
|
||||||
// Use our labelling system
|
// Use our labelling system
|
||||||
labels: ["dependencies"],
|
labels: ["dependencies"],
|
||||||
|
|
||||||
|
12
.github/workflows/publish.yml
vendored
12
.github/workflows/publish.yml
vendored
@ -19,19 +19,19 @@ jobs:
|
|||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: ~/.npm
|
path: ~/.npm
|
||||||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-node-
|
${{ runner.os }}-node-
|
||||||
- name: Cache Jest
|
- name: Cache Jest
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: .cache/jest
|
path: .cache/jest
|
||||||
key: ${{ runner.os }}-jest-${{ hashFiles('package-lock.json') }}-${{ github.run_number }}
|
key: ${{ runner.os }}-jest-${{ hashFiles('package.json') }}-${{ github.run_number }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-jest-${{ hashFiles('package-lock.json') }}-
|
${{ runner.os }}-jest-${{ hashFiles('package.json') }}-
|
||||||
${{ runner.os }}-jest-
|
${{ runner.os }}-jest-
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm ci
|
run: npm i
|
||||||
- name: Build NodeJS package
|
- name: Build NodeJS package
|
||||||
run: npm run build
|
run: npm run build
|
||||||
- name: Run linters
|
- name: Run linters
|
||||||
@ -53,11 +53,11 @@ jobs:
|
|||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: ~/.npm
|
path: ~/.npm
|
||||||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-node-
|
${{ runner.os }}-node-
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm ci
|
run: npm i
|
||||||
- name: Deploy to NPM
|
- name: Deploy to NPM
|
||||||
uses: JS-DevTools/npm-publish@v1
|
uses: JS-DevTools/npm-publish@v1
|
||||||
with:
|
with:
|
||||||
|
16
.github/workflows/verify.yml
vendored
16
.github/workflows/verify.yml
vendored
@ -16,11 +16,11 @@ jobs:
|
|||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: ~/.npm
|
path: ~/.npm
|
||||||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-node-
|
${{ runner.os }}-node-
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm ci
|
run: npm i
|
||||||
- name: Build NodeJS package
|
- name: Build NodeJS package
|
||||||
run: npm run build
|
run: npm run build
|
||||||
lint:
|
lint:
|
||||||
@ -37,11 +37,11 @@ jobs:
|
|||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: ~/.npm
|
path: ~/.npm
|
||||||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-node-
|
${{ runner.os }}-node-
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm ci
|
run: npm i
|
||||||
- name: Run linter
|
- name: Run linter
|
||||||
run: npm run lint
|
run: npm run lint
|
||||||
- name: Verify file permissions
|
- name: Verify file permissions
|
||||||
@ -76,18 +76,18 @@ jobs:
|
|||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: ~/.npm
|
path: ~/.npm
|
||||||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-node-
|
${{ runner.os }}-node-
|
||||||
- name: Cache Jest
|
- name: Cache Jest
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: .cache/jest
|
path: .cache/jest
|
||||||
key: ${{ runner.os }}-jest-${{ hashFiles('package-lock.json') }}-${{ github.run_number }}
|
key: ${{ runner.os }}-jest-${{ hashFiles('package.json') }}-${{ github.run_number }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-jest-${{ hashFiles('package-lock.json') }}-
|
${{ runner.os }}-jest-${{ hashFiles('package.json') }}-
|
||||||
${{ runner.os }}-jest-
|
${{ runner.os }}-jest-
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm ci
|
run: npm i
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: npm run test
|
run: npm run test
|
||||||
|
@ -9,7 +9,6 @@ const path = require("path");
|
|||||||
|
|
||||||
const rootDir = path.resolve(__dirname, "..", "..");
|
const rootDir = path.resolve(__dirname, "..", "..");
|
||||||
const packageJsonFile = path.resolve(rootDir, "package.json");
|
const packageJsonFile = path.resolve(rootDir, "package.json");
|
||||||
const packageLockFile = path.resolve(rootDir, "package-lock.json");
|
|
||||||
|
|
||||||
function readManifest(file) {
|
function readManifest(file) {
|
||||||
const manifestRaw = fs.readFileSync(file).toString();
|
const manifestRaw = fs.readFileSync(file).toString();
|
||||||
@ -25,13 +24,10 @@ function writeManifest(file, json) {
|
|||||||
function main(newVersion) {
|
function main(newVersion) {
|
||||||
try {
|
try {
|
||||||
const manifest = readManifest(packageJsonFile);
|
const manifest = readManifest(packageJsonFile);
|
||||||
const manifestLock = readManifest(packageLockFile);
|
|
||||||
|
|
||||||
manifest.version = newVersion
|
manifest.version = newVersion
|
||||||
manifestLock.version = newVersion
|
|
||||||
|
|
||||||
writeManifest(packageJsonFile, manifest);
|
writeManifest(packageJsonFile, manifest);
|
||||||
writeManifest(packageLockFile, manifestLock);
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(`Failed to bump package version to ${newVersion}:`, error);
|
console.error(`Failed to bump package version to ${newVersion}:`, error);
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
|
Loading…
Reference in New Issue
Block a user