Skip to content

Commit

Permalink
Making changes based on experiments in personal fork
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterBaker0 committed Aug 5, 2024
1 parent 0f611a3 commit 1969a6c
Show file tree
Hide file tree
Showing 11 changed files with 102 additions and 109 deletions.
5 changes: 0 additions & 5 deletions .commitlintrc

This file was deleted.

14 changes: 14 additions & 0 deletions .github/semantic.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
enabled: true
titleOnly: false
types:
- feat
- fix
- docs
- style
- refactor
- perf
- test
- build
- ci
- chore
- revert
37 changes: 37 additions & 0 deletions .github/workflows/check-package-lock.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Check package lock up to date

on:
pull_request:
branches: [main]

jobs:
package-lock-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: "20"

- name: Setup node cache
id: node-cache
uses: actions/cache@v3
with:
path: "**/node_modules"
key: npm-${{ hashFiles('package-lock.json') }}-${{ hashFiles('package.json') }}
restore-keys: npm-

- name: Install dependencies
if: steps.node-cache.outputs.cache-hit != 'true'
run: npm i

- name: Verify package-lock.json files are up to date
run: |
if ! git status --porcelain; then
echo "::error::Changes detected in git after running 'npm install --package-lock-only'. Please run 'npm install' and commit and push the changes."
git status
exit 1
fi
echo "No changes in package-lock detected."
49 changes: 49 additions & 0 deletions .github/workflows/release-on-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Release

on:
pull_request:
# will be checked is merged
types: [closed]
branches:
- main

jobs:
release:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write

steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "20"

- name: Setup node cache
id: node-cache
uses: actions/cache@v3
with:
path: "**/node_modules"
key: npm-${{ hashFiles('package-lock.json') }}-${{ hashFiles('package.json') }}
restore-keys: npm-

- name: Install dependencies
if: steps.node-cache.outputs.cache-hit != 'true'
run: npm i --include dev

- name: Configure Git
run: |
git config user.name "${GITHUB_ACTOR}"
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
- name: Run release-it
run: npm run release
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_IT_OAUTH_TOKEN }}
4 changes: 0 additions & 4 deletions .husky/commit-msg

This file was deleted.

27 changes: 0 additions & 27 deletions api/package-lock.json

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

16 changes: 0 additions & 16 deletions app/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 configs/config-release-it/.release-it.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module.exports = {
git: {
push: true,
tagName: `${packageName}-v${version}`,
pushRepo: 'git@github.com:FAIMS/FAIMS3.git',
pushRepo: 'https://github.com/FAIMS/FAIMS3.git',
commitsPath: '.',
commitMessage: `feat(${scope}): released version v${version} [no ci]`,
requireCommits: true,
Expand Down
4 changes: 0 additions & 4 deletions library/data-model/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@
},
"author": "",
"license": "Apache",
"repository": {
"type": "git",
"url": "https://github.com/FAIMS/faims3-data-model"
},
"peerDependencies": {
"pouchdb": "^7.3.0"
},
Expand Down
Loading

0 comments on commit 1969a6c

Please sign in to comment.